public abstract class DataSource extends Object
| Constructor and Description |
|---|
DataSource() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Close the underlying stream
|
abstract void |
copyTo(OutputStream stream)
Copies the contents to the specified OutputStream
|
abstract ByteBuffer |
read(int length,
long position) |
abstract long |
size() |
abstract void |
write(ByteBuffer src,
long position) |
public abstract ByteBuffer read(int length, long position) throws IOException
IOExceptionpublic abstract void write(ByteBuffer src, long position) throws IOException
IOExceptionpublic abstract long size()
throws IOException
IOExceptionpublic abstract void close()
throws IOException
IOExceptionpublic abstract void copyTo(OutputStream stream) throws IOException
IOExceptionCopyright © 2020. All rights reserved.