de.intarsys.pdf.filter
Class ASCII85InputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
de.intarsys.pdf.filter.ASCII85InputStream
- All Implemented Interfaces:
- Closeable
public class ASCII85InputStream
- extends FilterInputStream
Input stream to decode binary data encoded in ASCII representable byte codes.
The algorithm maps four bytes of data to five ASCII printing characters (and
vice versa).
The exact specification can be found in [PDF] chapter 3.3.2.
ASCII85InputStream
public ASCII85InputStream(InputStream is)
- Constructor
- Parameters:
is
- The input stream to actually read from.
read
public final int read()
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public final int read(byte[] data,
int offset,
int len)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
available
public int available()
throws IOException
- Overrides:
available
in class FilterInputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterInputStream
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class FilterInputStream
reset
public void reset()
throws IOException
- Overrides:
reset
in class FilterInputStream
- Throws:
IOException
skip
public long skip(long bytes)
throws IOException
- Overrides:
skip
in class FilterInputStream
- Throws:
IOException
Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.