| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT_CHUNK_SIZE
Default size to use for reading buffers. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static long | Returns: The number of bytes readThe input stream to read inputStream, OutputStream The output stream to write to outputStream)Copy the inputStream to the outputStream. |
| public static long | Returns: The number of bytes readThe input stream to read inputStream, OutputStream The output stream to write to outputStream, int The size of the buffer to use for reading bufferSize)Copy the inputStream to the outputStream using a buffer of the specified size |
| public static long | |
| public static long |
| DEFAULT_CHUNK_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_CHUNK_SIZE Default size to use for reading buffers. | |
| StreamUtils | back to summary |
|---|---|
| private StreamUtils() | |
| copy | back to summary |
|---|---|
| public static long copy(InputStream inputStream, OutputStream outputStream) throws IOException Copy the inputStream to the outputStream. Uses a buffer of the default size (
| |
| copy | back to summary |
|---|---|
| public static long copy(InputStream inputStream, OutputStream outputStream, int bufferSize) throws IOException Copy the inputStream to the outputStream using a buffer of the specified size
| |
| copy | back to summary |
|---|---|
| public static long copy(Reader reader, Writer writer) throws IOException Copy the reader to the writer. Uses a buffer of the default size (
| |
| copy | back to summary |
|---|---|
| public static long copy(Reader reader, Writer writer, int bufferSize) throws IOException Copy the reader to the writer using a buffer of the specified size
| |