org.pdfbox.pdfwriter
Class ContentStreamWriter
java.lang.Objectorg.pdfbox.pdfwriter.ContentStreamWriter
public class ContentStreamWriter
extends java.lang.Object
A class that will take a list of tokens and write out a stream with them.
static byte[] | EOL- standard line separator on this platform.
|
static byte[] | SPACE- space character.
|
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.
|
EOL
public static final byte[] EOL
standard line separator on this platform.
SPACE
public static final byte[] SPACE
space character.
ContentStreamWriter
public ContentStreamWriter(OutputStream out)
This will create a new content stream writer.
out - The stream to write the data to.
writeTokens
public void writeTokens(List tokens)
throws IOException This will write out the list of tokens to the stream.
tokens - The tokens to write to the stream.
writeTokens
public void writeTokens(List tokens,
int start,
int end)
throws IOException This will write out the list of tokens to the stream.
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.