|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.lf5.util.StreamUtils
public abstract class StreamUtils
Provides utility methods for input and output streams.
Field Summary | |
---|---|
static int |
DEFAULT_BUFFER_SIZE
Default value is 2048. |
Constructor Summary | |
---|---|
StreamUtils()
|
Method Summary | |
---|---|
static void |
copy(InputStream input,
OutputStream output)
Copies information from the input stream to the output stream using a default buffer size of 2048 bytes. |
static void |
copy(InputStream input,
OutputStream output,
int bufferSize)
Copies information from the input stream to the output stream using the specified buffer size |
static void |
copyThenClose(InputStream input,
OutputStream output)
Copies information between specified streams and then closes both of the streams. |
static byte[] |
getBytes(InputStream input)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_BUFFER_SIZE
Constructor Detail |
---|
public StreamUtils()
Method Detail |
---|
public static void copy(InputStream input, OutputStream output) throws IOException
IOException
public static void copy(InputStream input, OutputStream output, int bufferSize) throws IOException
IOException
public static void copyThenClose(InputStream input, OutputStream output) throws IOException
IOException
public static byte[] getBytes(InputStream input) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |