public class GetBufferedRandomAccessSource extends java.lang.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 java.io.IOException
get
in interface RandomAccessSource
java.io.IOException
public int get(long position, byte[] bytes, int off, int len) throws java.io.IOException
get
in interface RandomAccessSource
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
public long length()
length
in interface RandomAccessSource
public void close() throws java.io.IOException
close
in interface RandomAccessSource
java.io.IOException
Copyright © 2013. All Rights Reserved.