public class ContentStreamWriter extends Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
EOL
standard line separator
|
static byte[] |
SPACE
space character.
|
Constructor and Description |
---|
ContentStreamWriter(OutputStream out)
This will create a new content stream writer.
|
Modifier and Type | Method and Description |
---|---|
void |
writeToken(COSBase base)
Writes a single operand token.
|
void |
writeToken(Operator op)
Writes a single operator token.
|
void |
writeTokens(List<?> tokens)
This will write out the list of tokens to the stream.
|
void |
writeTokens(Object... tokens)
Writes a series of tokens followed by a new line.
|
public static final byte[] SPACE
public static final byte[] EOL
public ContentStreamWriter(OutputStream out)
out
- The stream to write the data to.public void writeToken(COSBase base) throws IOException
base
- The operand to write to the stream.IOException
- If there is an error writing to the stream.public void writeToken(Operator op) throws IOException
op
- The operator to write to the stream.IOException
- If there is an error writing to the stream.public void writeTokens(Object... tokens) throws IOException
tokens
- The tokens to write to the stream.IOException
- If there is an error writing to the stream.public void writeTokens(List<?> tokens) throws IOException
tokens
- The tokens to write to the stream.IOException
- If there is an error writing to the stream.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.