|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.utils.Streams
public class Streams
Streams utility class for reading and writing streams
Nested Class Summary | |
---|---|
static class |
Streams.StreamCopyThread
A simple Thread subclass that performs a stream copy from an InputStream to an OutputStream. |
Constructor Summary | |
---|---|
Streams()
|
Method Summary | |
---|---|
static void |
copyStream(java.io.InputStream in,
java.io.OutputStream out)
Read the data from the input stream and copy to the outputstream. |
static int |
copyStreamCount(java.io.InputStream in,
java.io.OutputStream out)
Read the data from the input stream and copy to the outputstream. |
static Streams.StreamCopyThread |
copyStreamThread(java.io.InputStream in,
java.io.OutputStream out)
Return a new thread that will copy an inputstream to an output stream. |
static void |
copyStreamWithFilterSet(java.io.InputStream in,
java.io.OutputStream out,
org.apache.tools.ant.types.FilterSet set)
Read the data from the input stream and write to the outputstream, filtering with an Ant FilterSet. |
static int |
copyWriterCount(java.io.Reader in,
java.io.Writer out)
Read the data from the reader and copy to the writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Streams()
Method Detail |
---|
public static void copyStream(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- inputstreamout
- outpustream
java.io.IOException
- if thrown by underlying io operationspublic static int copyStreamCount(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- inputstreamout
- outpustream
java.io.IOException
- if thrown by underlying io operationspublic static int copyWriterCount(java.io.Reader in, java.io.Writer out) throws java.io.IOException
in
- inputstreamout
- outpustream
java.io.IOException
- if thrown by underlying io operationspublic static Streams.StreamCopyThread copyStreamThread(java.io.InputStream in, java.io.OutputStream out)
in
- inputstreamout
- outputstream
Streams.StreamCopyThread
public static void copyStreamWithFilterSet(java.io.InputStream in, java.io.OutputStream out, org.apache.tools.ant.types.FilterSet set) throws java.io.IOException
in
- inputstreamout
- outputstreamset
- FilterSet to use
java.io.IOException
- if thrown by underlying io operations
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |