| java.lang.Object org.apache.catalina.util.IOTools
IOTools | public class IOTools (Code) | | Contains commonly needed I/O-related methods
author: Dan Sandberg |
Method Summary | |
public static void | flow(Reader reader, Writer writer, char[] buf) Read input from reader and write it to writer until there is no more
input from reader. | public static void | flow(Reader reader, Writer writer) | public static void | flow(InputStream is, OutputStream os, byte[] buf) Read input from input stream and write it to output stream
until there is no more input from input stream. | public static void | flow(InputStream is, OutputStream os) |
DEFAULT_BUFFER_SIZE | final protected static int DEFAULT_BUFFER_SIZE(Code) | | |
flow | public static void flow(Reader reader, Writer writer, char[] buf) throws IOException(Code) | | Read input from reader and write it to writer until there is no more
input from reader.
Parameters: reader - the reader to read from. Parameters: writer - the writer to write to. Parameters: buf - the char array to use as a bufferx |
flow | public static void flow(InputStream is, OutputStream os, byte[] buf) throws IOException(Code) | | Read input from input stream and write it to output stream
until there is no more input from input stream.
Parameters: is - input stream the input stream to read from. Parameters: os - output stream the output stream to write to. Parameters: buf - the byte array to use as a buffer |
|
|