| Modifier and Type | Field and Description |
|---|---|
| protected static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static void | flow(InputStream
input stream the input stream to read from. is, OutputStream output stream the output stream to write to. os)Read input from input stream and write it to output stream until there is no more input from input stream using a new buffer of the default size (4 KiB). |
| public static int | Returns: The number of bytes readThe source to read from is, byte[] The buffer to write to buf)Read until EOF or the buffer is filled. |
| DEFAULT_BUFFER_SIZE | back to summary |
|---|---|
| protected static final int DEFAULT_BUFFER_SIZE | |
| IOTools | back to summary |
|---|---|
| private IOTools() | |
| flow | back to summary |
|---|---|
| public static void flow(Reader reader, Writer writer, char[] buf) throws IOException Read input from reader and write it to writer until there is no more input from reader.
| |
| flow | back to summary |
|---|---|
| public static void flow(Reader reader, Writer writer) throws IOException Read input from reader and write it to writer until there is no more input from reader.
| |
| flow | back to summary |
|---|---|
| public static void flow(InputStream is, OutputStream os) throws IOException Read input from input stream and write it to output stream until there is no more input from input stream using a new buffer of the default size (4 KiB).
| |
| readFully | back to summary |
|---|---|
| public static int readFully(InputStream is, byte[] buf) throws IOException Read until EOF or the buffer is filled.
| |