public final class IOUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
copy(File from,
File to) |
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.input - output - IOExceptionpublic static long copy(FileInputStream input, FileOutputStream output) throws IOException
IOExceptionpublic static long copy(File from, File to) throws IOException
from - to - IOExceptionpublic static long copy(InputStream input, OutputStream output, int bufferSize) throws IOException
InputStream to an OutputStream.input - output - bufferSize - Size of internal buffer to use.IOExceptionpublic static long copy(Reader input, Writer output) throws IOException
Reader to a Writer.input - output - IOExceptionpublic static long copy(Reader input, Writer output, int bufferSize) throws IOException
Reader to a Writer.input - output - bufferSize - Size of internal buffer to use.IOExceptionMMBase2 Utils 2.0.0 - 2019-08-08T23:20