|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.core.utils.StreamUtils
public class StreamUtils
| Constructor Summary | |
|---|---|
StreamUtils()
|
|
| Method Summary | |
|---|---|
static void |
streamToStream(java.io.InputStream in,
java.io.OutputStream out)
Convenience method for reading data from an InputStream
and then immediately writing that data to an OutputStream
with a default buffer size of one kilobyte (1,024 bytes). |
static void |
streamToStream(java.io.InputStream in,
java.io.OutputStream out,
int bufferSize)
Convenience method for reading data from an InputStream
and then immediately writing that data to an OutputStream. |
static void |
streamToStream(java.io.Reader in,
java.io.Writer out)
Convenience method for reading data from a Reader and then
immediately writing that data to a Writer with a default
buffer size of one kilobyte (1,024 chars). |
static void |
streamToStream(java.io.Reader in,
java.io.Writer out,
int bufferSize)
Convenience method for reading data from a Reader and then
immediately writing that data to a Writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamUtils()
| Method Detail |
|---|
public static void streamToStream(java.io.Reader in,
java.io.Writer out)
throws java.io.IOException
Reader and then
immediately writing that data to a Writer with a default
buffer size of one kilobyte (1,024 chars).
in - a data sourceout - a data sink
java.io.IOException
public static void streamToStream(java.io.Reader in,
java.io.Writer out,
int bufferSize)
throws java.io.IOException
Reader and then
immediately writing that data to a Writer.
in - a data sourceout - a data sinkbufferSize - the size of the char buffer to use for each
read/write
java.io.IOException
public static void streamToStream(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
InputStream
and then immediately writing that data to an OutputStream
with a default buffer size of one kilobyte (1,024 bytes).
in - a data sourceout - a data sink
java.io.IOException
public static void streamToStream(java.io.InputStream in,
java.io.OutputStream out,
int bufferSize)
throws java.io.IOException
InputStream
and then immediately writing that data to an OutputStream.
in - a data sourceout - a data sinkbufferSize - the size of the byte buffer to use for each
read/write
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||