public interface IRandomAccessSource
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this source.
|
int |
get(long position)
Gets a byte at the specified position
|
int |
get(long position,
byte[] bytes,
int off,
int len)
Read an array of bytes of specified length from the specified position of source to the buffer applying the offset.
|
long |
length()
Gets the length of the source
|
int get(long position) throws IOException
position - byte positionIOException - in case of any reading error.int get(long position,
byte[] bytes,
int off,
int len)
throws IOException
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 readIOException - in case of any I/O error.long length()
void close()
throws IOException
IOException - in case of any reading error.Copyright © 1998–2021 iText Group NV. All rights reserved.