iText 8.0.2 API
|
Public Member Functions |
|
ThreadSafeRandomAccessSource (IRandomAccessSource source) | |
virtual int | Get (long position) |
Gets a byte at the specified position 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. More... |
|
virtual long | Length () |
Gets the length of the source More... |
|
virtual void | Close () |
Closes this source. More... |
|
|
inlinevirtual |
Closes this source.
Closes this source. The underlying data structure or source (if any) will also be closed
Implements iText.IO.Source.IRandomAccessSource.
|
inlinevirtual |
Gets a byte at the specified position
position | byte position |
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.
Read an array of bytes of specified length from the specified position of source to the buffer applying the offset. If the number of bytes requested cannot be read, all the possible bytes will be read to the buffer, and the number of actually read bytes will be returned.
position | 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 |
Implements iText.IO.Source.IRandomAccessSource.
|
inlinevirtual |
Gets the length of the source
Implements iText.IO.Source.IRandomAccessSource.