public abstract class DataSource
extends java.lang.Object
Constructor and Description |
---|
DataSource() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Close the underlying stream
|
abstract void |
copyTo(java.io.OutputStream stream)
Copies the contents to the specified OutputStream
|
abstract java.nio.ByteBuffer |
read(int length,
long position) |
abstract long |
size() |
abstract void |
write(java.nio.ByteBuffer src,
long position) |
public abstract java.nio.ByteBuffer read(int length, long position) throws java.io.IOException
java.io.IOException
public abstract void write(java.nio.ByteBuffer src, long position) throws java.io.IOException
java.io.IOException
public abstract long size() throws java.io.IOException
java.io.IOException
public abstract void close() throws java.io.IOException
java.io.IOException
public abstract void copyTo(java.io.OutputStream stream) throws java.io.IOException
java.io.IOException
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.