org.pdfbox.io
Class ASCII85OutputStream
FilterOutputStream
org.pdfbox.io.ASCII85OutputStream
public class ASCII85OutputStream
extends FilterOutputStream
This class represents an ASCII85 output stream.
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.
|
ASCII85OutputStream
public ASCII85OutputStream(OutputStream out)
Constructor.
out
- The output stream to write to.
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.
- The line length attribute.
getTerminator
public char getTerminator()
This will get the terminating character.
- The terminating character.
setLineLength
public void setLineLength(int l)
This will set the line length that will be used.
l
- The length of the line to use.
setTerminator
public void setTerminator(char term)
This will set the terminating character.
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.
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.