public class Siphon
extends java.lang.Object
| Constructor and Description |
|---|
Siphon()
Create a new instance of Siphon with a buffer size of 8192 bytes and
closes the streams after siphoning.
|
Siphon(boolean closeStreams)
Create a new instance of Siphon with a buffer size of 8192 bytes.
|
Siphon(boolean closeStreams,
int bufferSize)
Creates a new instance of Siphon with the provided buffer size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
siphon(java.io.InputStream in,
java.io.OutputStream out)
Siphons data from the input stream to the output stream.
|
public Siphon()
public Siphon(boolean closeStreams)
closeStreams - True if the streams should be closed after siphoning, false otherwise.public Siphon(boolean closeStreams,
int bufferSize)
closeStreams - True if the streams should be closed after siphoning, false otherwise.bufferSize - Number of bytes for the buffer.public void siphon(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in - InputStream to read data from.out - OutputStream to write data to.java.io.IOException - An error occurred either reading or writing data."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"