org.globus.ftp
Class OutputStreamDataSource
java.lang.Object
org.globus.ftp.OutputStreamDataSource
- All Implemented Interfaces:
- DataSource
- public class OutputStreamDataSource
- extends Object
- implements DataSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffers
protected CircularBuffer buffers
OutputStreamDataSource
public OutputStreamDataSource(int size)
read
public Buffer read()
throws IOException
- Description copied from interface:
DataSource
- Reads a data buffer from this data source.
- Specified by:
read
in interface DataSource
- Returns:
- The data buffer read. Null, if there is
no more data to be read.
- Throws:
IOException
- if an I/O error occurs.
close
public void close()
throws IOException
- Description copied from interface:
DataSource
- Closes this data source and releases any system
resources associated with this source.
- Specified by:
close
in interface DataSource
- Throws:
IOException
- if an I/O error occurs.
getOutputStream
public OutputStream getOutputStream()