public class IOTools
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_BUFFER_SIZE |
| Modifier and Type | Method and Description |
|---|---|
static void |
flow(java.io.InputStream is,
java.io.OutputStream os) |
static void |
flow(java.io.InputStream is,
java.io.OutputStream os,
byte[] buf)
Read input from input stream and write it to output stream
until there is no more input from input stream.
|
static void |
flow(java.io.Reader reader,
java.io.Writer writer) |
static void |
flow(java.io.Reader reader,
java.io.Writer writer,
char[] buf)
Read input from reader and write it to writer until there is no more
input from reader.
|
static int |
readFully(java.io.InputStream is,
byte[] buf)
Read until EOF or the buffer is filled.
|
protected static final int DEFAULT_BUFFER_SIZE
public static void flow(java.io.Reader reader,
java.io.Writer writer,
char[] buf)
throws java.io.IOException
reader - the reader to read from.writer - the writer to write to.buf - the char array to use as a bufferjava.io.IOExceptionpublic static void flow(java.io.Reader reader,
java.io.Writer writer)
throws java.io.IOException
java.io.IOExceptionflow( Reader, Writer, char[] )public static void flow(java.io.InputStream is,
java.io.OutputStream os,
byte[] buf)
throws java.io.IOException
is - input stream the input stream to read from.os - output stream the output stream to write to.buf - the byte array to use as a bufferjava.io.IOExceptionpublic static void flow(java.io.InputStream is,
java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionflow( java.io.InputStream, java.io.OutputStream, byte[] )public static int readFully(java.io.InputStream is,
byte[] buf)
throws java.io.IOException
is - The source to read frombuf - The buffer to write tojava.io.IOException - If an I/O error occurs during the readCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.