Top Description Fields Constructors Methods
org.apache.pdfbox.filter

pack-priv final Class ASCII85InputStream

extends FilterInputStream
Class Inheritance
Imports
java.io.FilterInputStream, .IOException, .InputStream

This class represents an ASCII85 stream.
Author
Ben Litchfield

Field Summary

Modifier and TypeField and Description
private byte[]
private byte[]
b

private boolean
private int
private int
n

private static final char
private static final char
private static final char
private static final char
private static final char
private static final char
private static final char
Z

Inherited from java.io.FilterInputStream:
in

Constructor Summary

AccessConstructor and Description
pack-priv
ASCII85InputStream(InputStream
The input stream to actually read from.
is
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

Always zero.
available
()

Overrides java.io.FilterInputStream.available.

Unsupported.

public void
close()

Overrides java.io.FilterInputStream.close.

Implements java.io.Closeable.close.

This will close the underlying stream and release any resources.

public synchronized void
mark(int
ignored.
readlimit
)

Overrides java.io.FilterInputStream.mark.

Unsupported.

public boolean

Returns:

False always.
markSupported
()

Overrides java.io.FilterInputStream.markSupported.

non supported interface methods.

public int

Returns:

The next byte read from the stream.
read
()

Overrides java.io.FilterInputStream.read.

This will read the next byte from the stream.

public int

Returns:

The number of bytes actually read.
read
(byte[]
The buffer to write data to.
data
,
int
The offset into the data stream.
offset
,
int
The number of byte to attempt to read.
len
)

Overrides java.io.FilterInputStream.read.

This will read a chunk of data.

public synchronized void
reset()

Overrides java.io.FilterInputStream.reset.

Unsupported.

public long

Returns:

Always zero.
skip
(long
ignored.
nValue
)

Overrides java.io.FilterInputStream.skip.

Unsupported.

Inherited from java.io.FilterInputStream:
read

Field Detail

asciiback to summary
private byte[] ascii
bback to summary
private byte[] b
eofback to summary
private boolean eof
indexback to summary
private int index
nback to summary
private int n
NEWLINEback to summary
private static final char NEWLINE
OFFSETback to summary
private static final char OFFSET
PADDING_Uback to summary
private static final char PADDING_U
RETURNback to summary
private static final char RETURN
SPACEback to summary
private static final char SPACE
TERMINATORback to summary
private static final char TERMINATOR
Zback to summary
private static final char Z

Constructor Detail

ASCII85InputStreamback to summary
pack-priv ASCII85InputStream(InputStream is)

Constructor.

Parameters
is:InputStream

The input stream to actually read from.

Method Detail

availableback to summary
public int available()

Overrides java.io.FilterInputStream.available.

Unsupported.

Returns:int

Always zero.

Annotations
@Override
closeback to summary
public void close() throws IOException

Overrides java.io.FilterInputStream.close.

Implements java.io.Closeable.close.

This will close the underlying stream and release any resources.

Annotations
@Override
Exceptions
IOException:
If there is an error closing the underlying stream.
markback to summary
public synchronized void mark(int readlimit)

Overrides java.io.FilterInputStream.mark.

Unsupported.

Parameters
readlimit:int

ignored.

Annotations
@Override
markSupportedback to summary
public boolean markSupported()

Overrides java.io.FilterInputStream.markSupported.

non supported interface methods.

Returns:boolean

False always.

Annotations
@Override
readback to summary
public int read() throws IOException

Overrides java.io.FilterInputStream.read.

This will read the next byte from the stream.

Returns:int

The next byte read from the stream.

Annotations
@Override
Exceptions
IOException:
If there is an error reading from the wrapped stream.
readback to summary
public int read(byte[] data, int offset, int len) throws IOException

Overrides java.io.FilterInputStream.read.

This will read a chunk of data.

Parameters
data:byte[]

The buffer to write data to.

offset:int

The offset into the data stream.

len:int

The number of byte to attempt to read.

Returns:int

The number of bytes actually read.

Annotations
@Override
Exceptions
IOException:
If there is an error reading data from the underlying stream.
resetback to summary
public synchronized void reset() throws IOException

Overrides java.io.FilterInputStream.reset.

Unsupported.

Annotations
@Override
Exceptions
IOException:
telling that this is an unsupported action.
skipback to summary
public long skip(long nValue)

Overrides java.io.FilterInputStream.skip.

Unsupported.

Parameters
nValue:long

ignored.

Returns:long

Always zero.

Annotations
@Override