|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdfwriter.ContentStreamWriter
public class ContentStreamWriter
A class that will take a list of tokens and write out a stream with them.
Field Summary | |
---|---|
static byte[] |
EOL
standard line separator |
static byte[] |
SPACE
space character. |
Constructor Summary | |
---|---|
ContentStreamWriter(OutputStream out)
This will create a new content stream writer. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte[] SPACE
public static final byte[] EOL
Constructor Detail |
---|
public ContentStreamWriter(OutputStream out)
out
- The stream to write the data to.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |