Package com.itextpdf.text.io
Class RASInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.itextpdf.text.io.RASInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class RASInputStream extends java.io.InputStream
An input stream that uses a RandomAccessSource as it's underlying source- Since:
- 5.3.5
-
-
Field Summary
Fields Modifier and Type Field Description private long
position
The current position in the sourceprivate RandomAccessSource
source
The source
-
Constructor Summary
Constructors Constructor Description RASInputStream(RandomAccessSource source)
Creates an input stream based on the source
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
int
read(byte[] b, int off, int len)
-
-
-
Field Detail
-
source
private final RandomAccessSource source
The source
-
position
private long position
The current position in the source
-
-
Constructor Detail
-
RASInputStream
public RASInputStream(RandomAccessSource source)
Creates an input stream based on the source- Parameters:
source
- the source
-
-