org.apache.pdfbox.io
public class ASCII85OutputStream extends java.io.FilterOutputStream
| Constructor and Description |
|---|
ASCII85OutputStream(java.io.OutputStream out)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ASCII85OutputStream(java.io.OutputStream out)
out - The output stream to write to.public void setTerminator(char term)
term - The terminating character.public char getTerminator()
public void setLineLength(int l)
l - The length of the line to use.public int getLineLength()
public final void write(int b)
throws java.io.IOException
write in class java.io.FilterOutputStreamb - The byte to write.java.io.IOException - If there is an error writing to the stream.public final void write(byte[] b,
int off,
int sz)
throws java.io.IOException
write in class java.io.FilterOutputStreamb - The byte buffer to read from.off - The offset into the buffer.sz - The number of bytes to read from the buffer.java.io.IOException - If there is an error writing to the underlying stream.public final void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.FilterOutputStreamjava.io.IOException - If there is an error writing the data to the stream.public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.FilterOutputStreamjava.io.IOException - If there is an error closing the wrapped stream.protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable - If there is an error.