iText 8.0.2 API
|
A RandomAccessSource that wraps another RandomAccessSource and provides a window of it at a specific offset and over a specific length. More...
Public Member Functions |
|
WindowRandomAccessSource (IRandomAccessSource source, long offset) | |
Constructs a new OffsetRandomAccessSource that extends to the end of the underlying source More... |
|
WindowRandomAccessSource (IRandomAccessSource source, long offset, long length) | |
Constructs a new OffsetRandomAccessSource with an explicit length More... |
|
virtual int | Get (long position) |
Gets a byte at the specified position Note that the position will be adjusted to read from the corrected location in the underlying source More... |
|
virtual 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. Note that the position will be adjusted to read from the corrected location in the underlying source More... |
|
virtual long | Length () |
Gets the length of the source Note that the length will be adjusted to read from the corrected location in the underlying source More... |
|
virtual void | Close () |
Closes this source. More... |
|
A RandomAccessSource that wraps another RandomAccessSource and provides a window of it at a specific offset and over a specific length.
A RandomAccessSource that wraps another RandomAccessSource and provides a window of it at a specific offset and over a specific length. Position 0 becomes the offset position in the underlying source.
|
inline |
Constructs a new OffsetRandomAccessSource that extends to the end of the underlying source
source | the source |
offset | the amount of the offset to use |
|
inline |
Constructs a new OffsetRandomAccessSource with an explicit length
source | the source |
offset | the amount of the offset to use |
length | the number of bytes to be included in this RAS |
|
inlinevirtual |
Closes this source.
Implements iText.IO.Source.IRandomAccessSource.
|
inlinevirtual |
Gets a byte at the specified position Note that the position will be adjusted to read from the corrected location in the underlying source
Implements iText.IO.Source.IRandomAccessSource.
|
inlinevirtual |
Read an array of bytes of specified length from the specified position of source to the buffer applying the offset. Note that the position will be adjusted to read from the corrected location in the underlying source
Implements iText.IO.Source.IRandomAccessSource.
|
inlinevirtual |
Gets the length of the source Note that the length will be adjusted to read from the corrected location in the underlying source
Implements iText.IO.Source.IRandomAccessSource.