public class Streams
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Streams.StreamCopyThread
A simple Thread subclass that performs a stream copy from an InputStream to an OutputStream.
|
| Constructor and Description |
|---|
Streams() |
| Modifier and Type | Method and Description |
|---|---|
static long |
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.
|
public static long copyStream(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in - inputstreamout - outpustreamjava.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 - outpustreamjava.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 - outpustreamjava.io.IOException - if thrown by underlying io operationspublic static Streams.StreamCopyThread copyStreamThread(java.io.InputStream in, java.io.OutputStream out)
in - inputstreamout - outputstreamStreams.StreamCopyThreadpublic 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 usejava.io.IOException - if thrown by underlying io operations