Save This Page
Home » slf4j-1.5.5 » org.apache » log4j » lf5 » util » [javadoc | source]
org.apache.log4j.lf5.util
abstract public class: StreamUtils [javadoc | source]
java.lang.Object
   org.apache.log4j.lf5.util.StreamUtils
Provides utility methods for input and output streams.
Field Summary
public static final  int DEFAULT_BUFFER_SIZE    Default value is 2048. 
Method from org.apache.log4j.lf5.util.StreamUtils Summary:
copy,   copy,   copyThenClose,   getBytes
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.lf5.util.StreamUtils Detail:
 public static  void copy(InputStream input,
    OutputStream output) throws IOException 
    Copies information from the input stream to the output stream using a default buffer size of 2048 bytes.
 public static  void copy(InputStream input,
    OutputStream output,
    int bufferSize) throws IOException 
    Copies information from the input stream to the output stream using the specified buffer size
 public static  void copyThenClose(InputStream input,
    OutputStream output) throws IOException 
    Copies information between specified streams and then closes both of the streams.
 public static byte[] getBytes(InputStream input) throws IOException