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
DataSource
read
in interface DataSource
IOException
- if an I/O error occurs.public void close() throws IOException
DataSource
close
in interface DataSource
IOException
- if an I/O error occurs.public OutputStream getOutputStream()
public long totalSize() throws IOException
DataSource
totalSize
in interface DataSource
IOException
- if an I/O exception occursCopyright © 2016. All rights reserved.