public abstract class ConnectionHolder extends Object
Constructor and Description |
---|
ConnectionHolder() |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection()
Closes connection when done.
|
ByteBuffer |
getBuffer() |
int |
readNextBlock()
Reads a block of data from the current position of the opened stream.
|
abstract long |
seek(long position)
Performs a seek request to the desired position.
|
public int readNextBlock() throws IOException
ClosedChannelException
- if an attempt is made to read after
closeConnection has been calledIOException
public ByteBuffer getBuffer()
public abstract long seek(long position)
public void closeConnection()
Copyright © 2020. All rights reserved.