intarsys PDF library API

de.intarsys.pdf.filter
Class ASCII85InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by 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.


Constructor Summary
ASCII85InputStream(InputStream is)
          Constructor
 
Method Summary
 int available()
           
 void close()
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] data, int offset, int len)
           
 void reset()
           
 long skip(long bytes)
           
 
Methods inherited from class java.io.FilterInputStream
mark, read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASCII85InputStream

public ASCII85InputStream(InputStream is)
Constructor

Parameters:
is - The input stream to actually read from.
Method Detail

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

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.