Package com.itextpdf.io.source
Class RASInputStream
java.lang.Object
java.io.InputStream
com.itextpdf.io.source.RASInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An input stream that uses a
IRandomAccessSource
as
its underlying source.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
The current position in the source.private final IRandomAccessSource
The source. -
Constructor Summary
ConstructorsConstructorDescriptionRASInputStream
(IRandomAccessSource 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
-
getSource
Gets the source- Returns:
- an instance of
IRandomAccessSource
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-