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.
-
Constructor Summary
ConstructorDescriptionRASInputStream
(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
-
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
-