org.jasen.util
Class IOUtils
java.lang.Object
org.jasen.util.IOUtils
- public final class IOUtils
- extends Object
General IO utility methods.
|
Method Summary |
static void |
pipe(InputStream in,
OutputStream out,
int bufferSize)
Simply pipes the data from the given input stream to the given output stream using the given transport buffer. |
IOUtils
public IOUtils()
pipe
public static final void pipe(InputStream in,
OutputStream out,
int bufferSize)
throws IOException
- Simply pipes the data from the given input stream to the given output stream using the given transport buffer.
NOTE: Neither stream is closed at the completion of this method, however the output stream IS flushed
- Parameters:
in - The stream containing the source dataout - The stream to which data will be writtenbufferSize - The size (in bytes) of the transport buffer to use
- Throws:
IOException