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 |
writeTokens(List tokens)
This will write out the list of tokens to the stream.
|
void |
writeTokens(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(OutputStream out)
out
- The stream to write the data to.public void writeTokens(List tokens, int start, int end) throws 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.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-2015 The Apache Software Foundation. All Rights Reserved.