Package org.jpedal.io.filter
Class RunLengthInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.jpedal.io.filter.RunLengthInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An input stream that lazily decodes runlength encoded data from the wrapped stream
The data stream in Run Length Encoding will consist of a sequence of runs, where each run shall consist of a
length byte followed by 1 to 128 bytes of data. If the length byte is in the range 0 to 127, the following
length + 1 (1 to 128) bytes shall be copied literally during decompression. If length is in the range 129
to 255, the following single byte shall be copied 257 - length (2 to 128) times during decompression. A
length value of 128 shall denote EOD.
- PDF Spec ISO 32000-2
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
close, mark, read, resetMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
RunLengthInputStream
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-