org.pdfbox.io

Class ASCII85InputStream


public class ASCII85InputStream
extends FilterInputStream

This class represents an ASCII85 stream.
Version:
$Revision: 1.6 $
Author:
Ben Litchfield

Constructor Summary

ASCII85InputStream(InputStream is)
Constructor.

Method Summary

int
available()
Unsupported.
void
close()
This will close the underlying stream and release any resources.
void
mark(int readlimit)
Unsupported.
boolean
markSupported()
non supported interface methods.
int
read()
This will read the next byte from the stream.
int
read(byte[] data, int offset, int len)
This will read a chunk of data.
void
reset()
Unsupported.
long
skip(long nValue)
Unsupported.

Constructor Details

ASCII85InputStream

public ASCII85InputStream(InputStream is)
Constructor.
Parameters:
is - The input stream to actually read from.

Method Details

available

public int available()
Unsupported.
Returns:
Always zero.

close

public void close()
            throws IOException
This will close the underlying stream and release any resources.

mark

public void mark(int readlimit)
Unsupported.
Parameters:
readlimit - ignored.

markSupported

public boolean markSupported()
non supported interface methods.
Returns:
False always.

read

public final int read()
            throws IOException
This will read the next byte from the stream.
Returns:
The next byte read from the stream.

read

public final int read(byte[] data,
                      int offset,
                      int len)
            throws IOException
This will read a chunk of data.
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.

reset

public void reset()
            throws IOException
Unsupported.

skip

public long skip(long nValue)
Unsupported.
Parameters:
nValue - ignored.
Returns:
Always zero.