public final class IOUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
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. |
public static long copy(InputStream input, OutputStream output) throws IOException
InputStream to an OutputStream.IOExceptionpublic static long copy(FileInputStream input, FileOutputStream output) throws IOException
IOExceptionpublic static long copy(InputStream input, OutputStream output, int bufferSize) throws IOException
InputStream to an OutputStream.bufferSize - Size of internal buffer to use.IOExceptionpublic static long copy(Reader input, Writer output) throws IOException
Reader to a Writer.IOExceptionpublic static long copy(Reader input, Writer output, int bufferSize) throws IOException
Reader to a Writer.bufferSize - Size of internal buffer to use.IOExceptionMMBase 1.9-SNAPSHOT - ${javadoctimestamp}