public class OutputStreamDataSource extends Object implements DataSource
| Modifier and Type | Field and Description |
|---|---|
protected CircularBuffer |
buffers |
| Constructor and Description |
|---|
OutputStreamDataSource(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this data source and releases any system
resources associated with this source.
|
OutputStream |
getOutputStream() |
Buffer |
read()
Reads a data buffer from this data source.
|
long |
totalSize()
Optional operation.
|
protected CircularBuffer buffers
public Buffer read() throws IOException
DataSourceread in interface DataSourceIOException - if an I/O error occurs.public void close()
throws IOException
DataSourceclose in interface DataSourceIOException - if an I/O error occurs.public OutputStream getOutputStream()
public long totalSize()
throws IOException
DataSourcetotalSize in interface DataSourceIOException - if an I/O exception occursCopyright © 2013. All Rights Reserved.