|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.IOUtil
public final class IOUtil
Various utils to consisely and efficiently deal with streams
| Method Summary | |
|---|---|
static long |
copy(FileInputStream input,
FileOutputStream output)
|
static long |
copy(InputStream input,
OutputStream output)
Copy bytes from an InputStream to an OutputStream. |
static long |
copy(InputStream input,
OutputStream output,
int bufferSize)
Copy bytes from an InputStream to an OutputStream. |
static long |
copy(Reader input,
Writer output)
Copy chars from a Reader to a Writer. |
static long |
copy(Reader input,
Writer output,
int bufferSize)
Copy chars from a Reader to a Writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static long copy(InputStream input,
OutputStream output)
throws IOException
InputStream to an OutputStream.
IOException
public static long copy(FileInputStream input,
FileOutputStream output)
throws IOException
IOException
public static long copy(InputStream input,
OutputStream output,
int bufferSize)
throws IOException
InputStream to an OutputStream.
bufferSize - Size of internal buffer to use.
IOException
public static long copy(Reader input,
Writer output)
throws IOException
Reader to a Writer.
IOException
public static long copy(Reader input,
Writer output,
int bufferSize)
throws IOException
Reader to a Writer.
bufferSize - Size of internal buffer to use.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||