public class IndependentRandomAccessSource extends Object implements IRandomAccessSource
| Constructor and Description |
|---|
IndependentRandomAccessSource(IRandomAccessSource source)
Constructs a new OffsetRandomAccessSource
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does nothing - the underlying source is not closed
|
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() |
public IndependentRandomAccessSource(IRandomAccessSource source)
source - the sourcepublic int get(long position)
throws IOException
get in interface IRandomAccessSourceposition - byte positionIOExceptionpublic int get(long position,
byte[] bytes,
int off,
int len)
throws IOException
get in interface IRandomAccessSourceposition - 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 IRandomAccessSourcepublic void close()
throws IOException
close in interface IRandomAccessSourceIOExceptionCopyright © 1998–2016 iText Group NV. All rights reserved.