public class GetBufferedRandomAccessSource extends Object implements RandomAccessSource
| Constructor and Description |
|---|
GetBufferedRandomAccessSource(RandomAccessSource source)
Constructs a new OffsetRandomAccessSource
|
public GetBufferedRandomAccessSource(RandomAccessSource source)
source - the sourcepublic int get(long position)
throws IOException
get in interface RandomAccessSourceIOExceptionpublic int get(long position,
byte[] bytes,
int off,
int len)
throws IOException
get in interface RandomAccessSourceposition - 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 readIOExceptionpublic long length()
length in interface RandomAccessSourcepublic void close()
throws IOException
close in interface RandomAccessSourceIOExceptionCopyright © 2013. All rights reserved.