org.apache.catalina.util
Class IOTools
java.lang.Objectorg.apache.catalina.util.IOTools
public class IOTools
extends java.lang.Object
Contains commonly needed I/O-related methods
- Dan Sandberg
static void | flow(InputStream is, OutputStream os)
|
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.
|
static void | flow(Reader reader, Writer writer)
|
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.
|
DEFAULT_BUFFER_SIZE
protected static final int DEFAULT_BUFFER_SIZE
- 4096
flow
public static void flow(InputStream is,
OutputStream os)
throws IOExceptionflow( java.io.InputStream, java.io.OutputStream, byte[] )
flow
public static void flow(InputStream is,
OutputStream os,
byte[] buf)
throws IOException Read input from input stream and write it to output stream
until there is no more input from input stream.
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 buffer
flow
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.
reader - the reader to read from.writer - the writer to write to.buf - the char array to use as a bufferx
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.