Package org.globus.ftp.dc
Class StreamImageDCReader
- java.lang.Object
-
- org.globus.ftp.dc.StreamImageDCReader
-
- All Implemented Interfaces:
DataChannelReader
- Direct Known Subclasses:
StreamAsciiDCReader
public class StreamImageDCReader extends java.lang.Object implements DataChannelReader
-
-
Field Summary
Fields Modifier and Type Field Description static int
BUF_SIZE
protected int
bufferSize
protected java.io.InputStream
input
-
Constructor Summary
Constructors Constructor Description StreamImageDCReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Buffer
read()
void
setDataStream(java.io.InputStream in)
-
-
-
Field Detail
-
BUF_SIZE
public static final int BUF_SIZE
- See Also:
- Constant Field Values
-
bufferSize
protected int bufferSize
-
input
protected java.io.InputStream input
-
-
Method Detail
-
setDataStream
public void setDataStream(java.io.InputStream in)
- Specified by:
setDataStream
in interfaceDataChannelReader
-
read
public Buffer read() throws java.io.IOException
- Specified by:
read
in interfaceDataChannelReader
- Returns:
- Buffer of read data or null if end of data
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfaceDataChannelReader
- Throws:
java.io.IOException
-
-