|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
org.pdfbox.io.ASCII85OutputStream
This class represents an ASCII85 output stream.
Field Summary |
Fields inherited from class java.io.FilterOutputStream |
out |
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. |
Methods inherited from class java.io.FilterOutputStream |
write |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ASCII85OutputStream(OutputStream out)
out
- The output stream to write to.Method Detail |
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 IOException
b
- The byte to write.
IOException
- If there is an error writing to the stream.public final void write(byte[] b, int off, int sz) throws IOException
b
- The byte buffer to read from.off
- The offset into the buffer.sz
- The number of bytes to read from the buffer.
IOException
- If there is an error writing to the underlying stream.public final void flush() throws IOException
IOException
- If there is an error writing the data to the stream.public void close() throws IOException
IOException
- If there is an error closing the wrapped stream.protected void finalize() throws Throwable
Throwable
- If there is an error.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |