DataSourceStream
, FileRandomIO
, OutputStreamDataSource
public interface DataSource
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Closes this data source and releases any system
resources associated with this source.
|
Buffer |
read() |
Reads a data buffer from this data source.
|
long |
totalSize() |
Optional operation.
|
Buffer read() throws IOException
IOException
- if an I/O error occurs.void close() throws IOException
IOException
- if an I/O error occurs.long totalSize() throws IOException
IOException
- if an I/O exception occursCopyright © 2018. All rights reserved.