Package org.apache.pdfbox.io
Class ASCII85OutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.pdfbox.io.ASCII85OutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class ASCII85OutputStream extends java.io.FilterOutputStreamThis class represents an ASCII85 output stream.- Author:
- Ben Litchfield
-
-
Constructor Summary
Constructors Constructor Description ASCII85OutputStream(java.io.OutputStream out)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This will close the stream.voidflush()This will flush the data to the stream.intgetLineLength()This will get the length of the line.chargetTerminator()This will get the terminating character.voidsetLineLength(int l)This will set the line length that will be used.voidsetTerminator(char term)This will set the terminating character.voidwrite(int b)This will write a single byte.
-
-
-
Method Detail
-
setTerminator
public void setTerminator(char term)
This will set the terminating character.- Parameters:
term- The terminating character.
-
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.
-
getLineLength
public int getLineLength()
This will get the length of the line.- Returns:
- The line length attribute.
-
write
public final void write(int b) throws java.io.IOExceptionThis will write a single byte.- Overrides:
writein classjava.io.FilterOutputStream- Parameters:
b- The byte to write.- Throws:
java.io.IOException- If there is an error writing to the stream.
-
flush
public final void flush() throws java.io.IOExceptionThis will flush the data to the stream.- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.FilterOutputStream- Throws:
java.io.IOException- If there is an error writing the data to the stream.
-
close
public void close() throws java.io.IOExceptionThis will close the stream.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterOutputStream- Throws:
java.io.IOException- If there is an error closing the wrapped stream.
-
-