DataSourcepublic class OutputStreamDataSource extends Object implements DataSource
| Modifier and Type | Field | Description |
|---|---|---|
protected CircularBuffer |
buffers |
| Constructor | Description |
|---|---|
OutputStreamDataSource(int size) |
| Modifier and Type | Method | 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 © 2018. All rights reserved.