Package org.apache.pdfbox.filter
Class ASCII85InputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.pdfbox.filter.ASCII85InputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
final class ASCII85InputStream extends java.io.FilterInputStreamThis class represents an ASCII85 stream.
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]asciiprivate byte[]bprivate booleaneofprivate intindexprivate intnprivate static charNEWLINEprivate static charOFFSETprivate static charPADDING_Uprivate static charRETURNprivate static charSPACEprivate static charTERMINATORprivate static charZ
-
Constructor Summary
Constructors Constructor Description ASCII85InputStream(java.io.InputStream is)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()Unsupported.voidclose()This will close the underlying stream and release any resources.voidmark(int readlimit)Unsupported.booleanmarkSupported()non supported interface methods.intread()This will read the next byte from the stream.intread(byte[] data, int offset, int len)This will read a chunk of data.voidreset()Unsupported.longskip(long nValue)Unsupported.
-
-
-
Field Detail
-
index
private int index
-
n
private int n
-
eof
private boolean eof
-
ascii
private byte[] ascii
-
b
private byte[] b
-
TERMINATOR
private static final char TERMINATOR
- See Also:
- Constant Field Values
-
OFFSET
private static final char OFFSET
- See Also:
- Constant Field Values
-
NEWLINE
private static final char NEWLINE
- See Also:
- Constant Field Values
-
RETURN
private static final char RETURN
- See Also:
- Constant Field Values
-
SPACE
private static final char SPACE
- See Also:
- Constant Field Values
-
PADDING_U
private static final char PADDING_U
- See Also:
- Constant Field Values
-
Z
private static final char Z
- See Also:
- Constant Field Values
-
-
Method Detail
-
read
public int read() throws java.io.IOExceptionThis will read the next byte from the stream.- Overrides:
readin classjava.io.FilterInputStream- Returns:
- The next byte read from the stream.
- Throws:
java.io.IOException- If there is an error reading from the wrapped stream.
-
read
public int read(byte[] data, int offset, int len) throws java.io.IOExceptionThis will read a chunk of data.- Overrides:
readin classjava.io.FilterInputStream- 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:
java.io.IOException- If there is an error reading data from the underlying stream.
-
close
public void close() throws java.io.IOExceptionThis will close the underlying stream and release any resources.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterInputStream- Throws:
java.io.IOException- If there is an error closing the underlying stream.
-
markSupported
public boolean markSupported()
non supported interface methods.- Overrides:
markSupportedin classjava.io.FilterInputStream- Returns:
- False always.
-
skip
public long skip(long nValue)
Unsupported.- Overrides:
skipin classjava.io.FilterInputStream- Parameters:
nValue- ignored.- Returns:
- Always zero.
-
available
public int available()
Unsupported.- Overrides:
availablein classjava.io.FilterInputStream- Returns:
- Always zero.
-
mark
public void mark(int readlimit)
Unsupported.- Overrides:
markin classjava.io.FilterInputStream- Parameters:
readlimit- ignored.
-
reset
public void reset() throws java.io.IOExceptionUnsupported.- Overrides:
resetin classjava.io.FilterInputStream- Throws:
java.io.IOException- telling that this is an unsupported action.
-
-