public class IndependentRandomAccessSource extends java.lang.Object implements RandomAccessSource
| Constructor and Description |
|---|
IndependentRandomAccessSource(RandomAccessSource source)
Constructs a new OffsetRandomAccessSource
|
public IndependentRandomAccessSource(RandomAccessSource source)
source - the sourcepublic int get(long position)
throws java.io.IOException
get in interface RandomAccessSourcejava.io.IOExceptionpublic int get(long position,
byte[] bytes,
int off,
int len)
throws java.io.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 readjava.io.IOExceptionpublic long length()
length in interface RandomAccessSourcepublic void close()
throws java.io.IOException
close in interface RandomAccessSourcejava.io.IOExceptionCopyright © 2013. All Rights Reserved.