public class ContentStreamWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
EOL
standard line separator
|
private java.io.OutputStream |
output |
static byte[] |
SPACE
space character.
|
Constructor and Description |
---|
ContentStreamWriter(java.io.OutputStream out)
This will create a new content stream writer.
|
Modifier and Type | Method and Description |
---|---|
private void |
writeObject(java.lang.Object o) |
void |
writeToken(COSBase base)
Writes a single operand token.
|
void |
writeToken(Operator op)
Writes a single operator token.
|
void |
writeTokens(java.util.List<?> tokens)
This will write out the list of tokens to the stream.
|
void |
writeTokens(java.lang.Object... tokens)
Writes a series of tokens followed by a new line.
|
private final java.io.OutputStream output
public static final byte[] SPACE
public static final byte[] EOL
public ContentStreamWriter(java.io.OutputStream out)
out
- The stream to write the data to.public void writeToken(COSBase base) throws java.io.IOException
base
- The operand to write to the stream.java.io.IOException
- If there is an error writing to the stream.public void writeToken(Operator op) throws java.io.IOException
op
- The operator to write to the stream.java.io.IOException
- If there is an error writing to the stream.public void writeTokens(java.lang.Object... tokens) throws java.io.IOException
tokens
- The tokens to write to the stream.java.io.IOException
- If there is an error writing to the stream.public void writeTokens(java.util.List<?> tokens) throws java.io.IOException
tokens
- The tokens to write to the stream.java.io.IOException
- If there is an error writing to the stream.private void writeObject(java.lang.Object o) throws java.io.IOException
java.io.IOException