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
IOException
public abstract void write(ByteBuffer src, long position) throws IOException
IOException
public abstract long size() throws IOException
IOException
public abstract void close() throws IOException
IOException
public abstract void copyTo(OutputStream stream) throws IOException
IOException
Copyright © 2020. All rights reserved.