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 |
writeTokens(java.util.List tokens) |
This will write out the list of tokens to the stream.
|
void |
writeTokens(java.util.List tokens,
int start,
int end) |
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 writeTokens(java.util.List tokens,
int start,
int end)
throws java.io.IOException
tokens - The tokens to write to the stream.start - The start index into the list of tokens.end - The end index into the list of tokens.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.