org.pdfbox.io

Class ASCII85OutputStream


public class ASCII85OutputStream
extends FilterOutputStream

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

Constructor Summary

ASCII85OutputStream(OutputStream out)
Constructor.

Method Summary

void
close()
This will close the stream.
protected void
finalize()
This will flush the stream.
void
flush()
This will flush the data to the stream.
int
getLineLength()
This will get the length of the line.
char
getTerminator()
This will get the terminating character.
void
setLineLength(int l)
This will set the line length that will be used.
void
setTerminator(char term)
This will set the terminating character.
void
write(byte[] b, int off, int sz)
This will write a chunk of data to the stream.
void
write(int b)
This will write a single byte.

Constructor Details

ASCII85OutputStream

public ASCII85OutputStream(OutputStream out)
Constructor.
Parameters:
out - The output stream to write to.

Method Details

close

public void close()
            throws IOException
This will close the stream.

finalize

protected void finalize()
            throws Throwable
This will flush the stream.

flush

public final void flush()
            throws IOException
This will flush the data to the stream.

getLineLength

public int getLineLength()
This will get the length of the line.
Returns:
The line length attribute.

getTerminator

public char getTerminator()
This will get the terminating character.
Returns:
The terminating character.

setLineLength

public void setLineLength(int l)
This will set the line length that will be used.
Parameters:
l - The length of the line to use.

setTerminator

public void setTerminator(char term)
This will set the terminating character.
Parameters:
term - The terminating character.

write

public final void write(byte[] b,
                        int off,
                        int sz)
            throws IOException
This will write a chunk of data to the stream.
Parameters:
b - The byte buffer to read from.
off - The offset into the buffer.
sz - The number of bytes to read from the buffer.

write

public final void write(int b)
            throws IOException
This will write a single byte.
Parameters:
b - The byte to write.