public class OutputStreamDataSource extends java.lang.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.
|
java.io.OutputStream |
getOutputStream() |
Buffer |
read()
Reads a data buffer from this data source.
|
long |
totalSize()
Optional operation.
|
protected CircularBuffer buffers
public Buffer read() throws java.io.IOException
DataSourceread in interface DataSourcejava.io.IOException - if an I/O error occurs.public void close()
throws java.io.IOException
DataSourceclose in interface DataSourcejava.io.IOException - if an I/O error occurs.public java.io.OutputStream getOutputStream()
public long totalSize()
throws java.io.IOException
DataSourcetotalSize in interface DataSourcejava.io.IOException - if an I/O exception occursCopyright © 2013. All Rights Reserved.