| |
|
| java.lang.Object java.io.OutputStream java.io.FilterOutputStream org.pdfbox.pdfwriter.COSStandardOutputStream
COSStandardOutputStream | public class COSStandardOutputStream extends FilterOutputStream (Code) | | simple output stream with some minor features for generating "pretty"
pdf files.
author: Michael Traut version: $Revision: 1.5 $ |
Field Summary | |
final public static byte[] | CRLF To be used when 2 byte sequence is enforced. | final public static byte[] | EOL standard line separator on this platform. | final public static byte[] | LF Line feed character. |
Method Summary | |
public long | getPos() This will get the current position in the stream. | public boolean | isOnNewLine() This will tell if we are on a newling. | public void | setOnNewLine(boolean newOnNewLine) This will set a flag telling if we are on a newline. | public void | write(byte[] b, int off, int len) This will write some byte to the stream. | public void | write(int b) This will write a single byte to the stream. | public void | writeCRLF() This will write a CRLF to the stream. | public void | writeEOL() This will write an EOL to the stream. | public void | writeLF() This will write a Linefeed to the stream. |
CRLF | final public static byte[] CRLF(Code) | | To be used when 2 byte sequence is enforced.
|
EOL | final public static byte[] EOL(Code) | | standard line separator on this platform.
|
LF | final public static byte[] LF(Code) | | Line feed character.
|
COSStandardOutputStream | public COSStandardOutputStream(OutputStream out)(Code) | | COSOutputStream constructor comment.
Parameters: out - The underlying stream to write to. |
getPos | public long getPos()(Code) | | This will get the current position in the stream.
The current position in the stream. |
isOnNewLine | public boolean isOnNewLine()(Code) | | This will tell if we are on a newling.
true If we are on a newline. |
setOnNewLine | public void setOnNewLine(boolean newOnNewLine)(Code) | | This will set a flag telling if we are on a newline.
Parameters: newOnNewLine - The new value for the onNewLine attribute. |
write | public void write(byte[] b, int off, int len) throws IOException(Code) | | This will write some byte to the stream.
Parameters: b - The source byte array. Parameters: off - The offset into the array to start writing. Parameters: len - The number of bytes to write. throws: IOException - If the underlying stream throws an exception. |
write | public void write(int b) throws IOException(Code) | | This will write a single byte to the stream.
Parameters: b - The byte to write to the stream. throws: IOException - If there is an error writing to the underlying stream. |
writeCRLF | public void writeCRLF() throws IOException(Code) | | This will write a CRLF to the stream.
throws: IOException - If there is an error writing the data to the stream. |
writeEOL | public void writeEOL() throws IOException(Code) | | This will write an EOL to the stream.
throws: IOException - If there is an error writing to the stream |
writeLF | public void writeLF() throws IOException(Code) | | This will write a Linefeed to the stream.
throws: IOException - If there is an error writing to the underlying stream. |
|
|
|