Package com.itextpdf.text.io
Class RASInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.itextpdf.text.io.RASInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class RASInputStream extends InputStream
An input stream that uses a RandomAccessSource as it's underlying source- Since:
- 5.3.5
-
-
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)
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
RASInputStream
public RASInputStream(RandomAccessSource source)
Creates an input stream based on the source- Parameters:
source
- the source
-
-
Method Detail
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
-