public class ContentStreamWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static byte |
SPACE |
| Constructor and Description |
|---|
ContentStreamWriter(org.sejda.io.BufferedCountingChannelWriter writer) |
ContentStreamWriter(org.sejda.io.CountingWritableByteChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
void |
visit(COSArray value) |
void |
visit(COSBoolean value) |
void |
visit(COSDictionary dictionary) |
void |
visit(COSFloat value) |
void |
visit(COSInteger value) |
void |
visit(COSName value) |
void |
visit(COSNull value) |
void |
visit(COSStream value) |
void |
visit(COSString value) |
void |
visit(IndirectCOSObjectReference value) |
void |
writeComplexObjectSeparator() |
void |
writeContent(byte[] byteArray)
Writes the byte array as is as content of the stream.
|
default void |
writeDictionaryItemsSeparator()
writes the separator after a
COSDictionary value is written, before the next key/value is written. |
void |
writeEOL() |
void |
writeOperator(List<COSBase> operands,
Operator operator) |
org.sejda.io.BufferedCountingChannelWriter |
writer() |
void |
writeSpace() |
void |
writeTokens(List<Object> tokens) |
void |
writeTokens(Operator... tokens) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitprotected static final byte SPACE
public ContentStreamWriter(org.sejda.io.CountingWritableByteChannel channel)
public ContentStreamWriter(org.sejda.io.BufferedCountingChannelWriter writer)
public void writeTokens(List<Object> tokens) throws IOException
IOExceptionpublic void writeTokens(Operator... tokens) throws IOException
IOExceptionpublic void writeOperator(List<COSBase> operands, Operator operator) throws IOException
IOExceptionpublic void writeContent(byte[] byteArray)
throws IOException
byteArray - IOExceptionpublic void writeEOL()
throws IOException
IOExceptionpublic void writeSpace()
throws IOException
IOExceptionpublic void visit(COSStream value)
public void visit(IndirectCOSObjectReference value)
public void writeComplexObjectSeparator()
public void visit(COSArray value) throws IOException
IOExceptionpublic void visit(COSBoolean value) throws IOException
IOExceptionpublic void visit(COSDictionary dictionary) throws IOException
IOExceptionpublic void visit(COSFloat value) throws IOException
IOExceptionpublic void visit(COSInteger value) throws IOException
IOExceptionpublic void visit(COSName value) throws IOException
IOExceptionpublic void visit(COSNull value) throws IOException
IOExceptionpublic void visit(COSString value) throws IOException
IOExceptionpublic org.sejda.io.BufferedCountingChannelWriter writer()
public void writeDictionaryItemsSeparator()
throws IOException
COSDictionary value is written, before the next key/value is written.IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2019 sejda. All rights reserved.