protected static class PdfTokenizer.ReusableRandomAccessSource extends Object implements IRandomAccessSource
Constructor and Description |
---|
ReusableRandomAccessSource(ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this source.
|
int |
get(long offset)
Gets a byte at the specified position
|
int |
get(long offset, byte[] bytes, int off, int len)
Gets an array at the specified position.
|
long |
length() |
public ReusableRandomAccessSource(ByteBuffer buffer)
public int get(long offset)
IRandomAccessSource
get
in interface IRandomAccessSource
offset
- byte position
public int get(long offset, byte[] bytes, int off, int len)
IRandomAccessSource
get
in interface IRandomAccessSource
offset
- the position in the RandomAccessSource to read from
bytes
- output buffer
off
- offset into the output buffer where results will be placed
len
- the number of bytes to read
public long length()
length
in interface IRandomAccessSource
public void close() throws IOException
IRandomAccessSource
close
in interface IRandomAccessSource
IOException
Copyright © 1998–2016 iText Group NV. All rights reserved.