Package org.apache.pdfbox.io
Class ASCII85InputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.pdfbox.io.ASCII85InputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
This class represents an ASCII85 stream.
- Author:
- Ben Litchfield
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Unsupported.void
close()
This will close the underlying stream and release any resources.void
mark
(int readlimit) Unsupported.boolean
non supported interface methods.final int
read()
This will read the next byte from the stream.final int
read
(byte[] data, int offset, int len) This will read a chunk of data.void
reset()
Unsupported.long
skip
(long nValue) Unsupported.Methods inherited from class java.io.FilterInputStream
read
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ASCII85InputStream
Constructor.- Parameters:
is
- The input stream to actually read from.
-
-
Method Details
-
read
This will read the next byte from the stream.- Overrides:
read
in classFilterInputStream
- Returns:
- The next byte read from the stream.
- Throws:
IOException
- If there is an error reading from the wrapped stream.
-
read
This will read a chunk of data.- Overrides:
read
in classFilterInputStream
- Parameters:
data
- The buffer to write data to.offset
- The offset into the data stream.len
- The number of byte to attempt to read.- Returns:
- The number of bytes actually read.
- Throws:
IOException
- If there is an error reading data from the underlying stream.
-
close
This will close the underlying stream and release any resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
- If there is an error closing the underlying stream.
-
markSupported
public boolean markSupported()non supported interface methods.- Overrides:
markSupported
in classFilterInputStream
- Returns:
- False always.
-
skip
public long skip(long nValue) Unsupported.- Overrides:
skip
in classFilterInputStream
- Parameters:
nValue
- ignored.- Returns:
- Always zero.
-
available
public int available()Unsupported.- Overrides:
available
in classFilterInputStream
- Returns:
- Always zero.
-
mark
public void mark(int readlimit) Unsupported.- Overrides:
mark
in classFilterInputStream
- Parameters:
readlimit
- ignored.
-
reset
Unsupported.- Overrides:
reset
in classFilterInputStream
- Throws:
IOException
- telling that this is an unsupported action.
-