Package com.itextpdf.text.io
Class RASInputStream
java.lang.Object
java.io.InputStream
com.itextpdf.text.io.RASInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An input stream that uses a RandomAccessSource as it's underlying source
- Since:
- 5.3.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
The current position in the sourceprivate final RandomAccessSource
The source -
Constructor Summary
ConstructorsConstructorDescriptionRASInputStream
(RandomAccessSource source) Creates an input stream based on the source -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
source
The source -
position
private long positionThe current position in the source
-
-
Constructor Details
-
RASInputStream
Creates an input stream based on the source- Parameters:
source
- the source
-
-
Method Details
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-