public class ContentStreamWriter
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static byte[] |
EOL |
standard line separator
|
static byte[] |
SPACE |
space character.
|
| Constructor | Description |
|---|---|
ContentStreamWriter(java.io.OutputStream out) |
This will create a new content stream writer.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
writeToken(Operator op) |
Writes a single operator token.
|
void |
writeToken(COSBase base) |
Writes a single operand token.
|
void |
writeTokens(java.lang.Object... tokens) |
Writes a series of tokens followed by a new line.
|
void |
writeTokens(java.util.List<?> tokens) |
This will write out the list of tokens to the stream.
|
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.Copyright © 2002–2018. All rights reserved.