public interface RandomAccessSource
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this source.
|
int |
get(long position)
Gets a byte at the specified position
|
int |
get(long position,
byte[] bytes,
int off,
int len)
Gets an array at the specified position.
|
long |
length() |
int get(long position) throws IOException
position - IOExceptionint get(long position,
byte[] bytes,
int off,
int len)
throws IOException
position - the position in the RandomAccessSource to read frombytes - output bufferoff - offset into the output buffer where results will be placedlen - the number of bytes to readIOExceptionlong length()
void close()
throws IOException
IOExceptionCopyright © 2022. All rights reserved.