intarsys PDF library API

de.intarsys.pdf.filter
Class ASCII85OutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by de.intarsys.pdf.filter.ASCII85OutputStream
All Implemented Interfaces:
Closeable, Flushable

public class ASCII85OutputStream
extends FilterOutputStream

Output stream to encode binary data with ASCII representable byte codes. The algorithm produces five ASCII printing characters from four bytes of binary data.

The exact specification can be found in [PDF] chapter 3.3.2.


Constructor Summary
ASCII85OutputStream(OutputStream out)
          Constructor.
 
Method Summary
 void close()
           
 void flush()
           
 int getLineLength()
          This will get the length of the line.
 void setLineLength(int l)
          Set the line length.
 void write(byte[] b, int off, int sz)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASCII85OutputStream

public ASCII85OutputStream(OutputStream out)
Constructor.

Parameters:
out - The output stream to write to.
Method Detail

setLineLength

public void setLineLength(int l)
Set the line length.

Parameters:
l - The line length.

getLineLength

public int getLineLength()
This will get the length of the line.

Returns:
The line length attribute.

flush

public final void flush()
                 throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class FilterOutputStream
Throws:
IOException

write

public void write(int b)
           throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException

write

public final void write(byte[] b,
                        int off,
                        int sz)
                 throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class FilterOutputStream
Throws:
IOException

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.