FileChannelRandomAccessSource
, GetBufferedRandomAccessSource
, IndependentRandomAccessSource
, WindowRandomAccessSource
public interface RandomAccessSource
Modifier and Type | Method | 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 java.io.IOException
position
- java.io.IOException
int get(long position, byte[] bytes, int off, int len) throws java.io.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 readjava.io.IOException
long length()
void close() throws java.io.IOException
java.io.IOException
Copyright © 1998–2018. All rights reserved.