| Modifier and Type | Field and Description |
|---|---|
| public static final byte[] | CRLF
To be used when 2 byte sequence is enforced. |
| public static final byte[] | EOL
standard line separator. |
| public static final byte[] | LF
Line feed character. |
| private boolean | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | COSStandardOutputStream(OutputStream
The underlying stream to write to. out, long The current position of output stream. position)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: The current position in the stream.This will get the current position in the stream. |
| public boolean | |
| public void | setOnNewLine(boolean
The new value for the onNewLine attribute. newOnNewLine)This will set a flag telling if we are on a newline. |
| public void | write(byte[]
The source byte array. b, int The offset into the array to start writing. off, int The number of bytes to write. len)Overrides java. This will write some byte to the stream. |
| public void | write(int
The byte to write to the stream. b)Overrides java. This will write a single byte to the stream. |
| public void | |
| public void | |
| public void |
| CRLF | back to summary |
|---|---|
| public static final byte[] CRLF To be used when 2 byte sequence is enforced. | |
| EOL | back to summary |
|---|---|
| public static final byte[] EOL standard line separator. | |
| LF | back to summary |
|---|---|
| public static final byte[] LF Line feed character. | |
| onNewLine | back to summary |
|---|---|
| private boolean onNewLine | |
| position | back to summary |
|---|---|
| private long position | |
| COSStandardOutputStream | back to summary |
|---|---|
| public COSStandardOutputStream(OutputStream out) Constructor.
| |
| COSStandardOutputStream | back to summary |
|---|---|
| public COSStandardOutputStream(OutputStream out, long position) Constructor.
| |
| getPos | back to summary |
|---|---|
| public long getPos() This will get the current position in the stream.
| |
| isOnNewLine | back to summary |
|---|---|
| public boolean isOnNewLine() This will tell if we are on a newline.
| |
| setOnNewLine | back to summary |
|---|---|
| public void setOnNewLine(boolean newOnNewLine) This will set a flag telling if we are on a newline.
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. This will write some byte to the stream.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Overrides java. This will write a single byte to the stream.
| |
| writeCRLF | back to summary |
|---|---|
| public void writeCRLF() throws IOException This will write a CRLF to the stream.
| |
| writeEOL | back to summary |
|---|---|
| public void writeEOL() throws IOException This will write an EOL to the stream.
| |
| writeLF | back to summary |
|---|---|
| public void writeLF() throws IOException This will write a Linefeed to the stream.
| |