public interface DataSource
| Modifier and Type | Method and 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 © 2015. All rights reserved.