java.lang.Object
org.sejda.sambox.output.ContentStreamWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,COSVisitor
- Author:
- Andrea Vacondio
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byteprotected static final byte -
Constructor Summary
ConstructorsConstructorDescriptionContentStreamWriter(org.sejda.io.BufferedCountingChannelWriter writer) ContentStreamWriter(org.sejda.io.CountingWritableByteChannel channel) -
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()voidvoidvisit(COSBoolean value) voidvisit(COSDictionary dictionary) voidvoidvisit(COSInteger value) voidvoidvoidvoidvoidvisit(IndirectCOSObjectReference value) voidwriteComment(String comment) voidvoidwriteContent(byte[] byteArray) Writes the byte array as is as content of the stream.default voidwrites the separator after aCOSDictionaryvalue is written, before the next key/value is written.voidwriteEOL()voidwriteOperator(List<COSBase> operands, Operator operator) org.sejda.io.BufferedCountingChannelWriterwriter()voidvoidwriteTokens(List<Object> tokens) voidwriteTokens(Operator... tokens) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sejda.sambox.cos.COSVisitor
visit
-
Field Details
-
SPACE
protected static final byte SPACE- See Also:
-
PERCENT_SIGN
protected static final byte PERCENT_SIGN- See Also:
-
-
Constructor Details
-
ContentStreamWriter
public ContentStreamWriter(org.sejda.io.CountingWritableByteChannel channel) -
ContentStreamWriter
public ContentStreamWriter(org.sejda.io.BufferedCountingChannelWriter writer)
-
-
Method Details
-
writeTokens
- Throws:
IOException
-
writeTokens
- Throws:
IOException
-
writeOperator
- Throws:
IOException
-
writeContent
Writes the byte array as is as content of the stream.- Parameters:
byteArray-- Throws:
IOException
-
writeEOL
- Throws:
IOException
-
writeSpace
- Throws:
IOException
-
writeComment
- Throws:
IOException
-
visit
- Specified by:
visitin interfaceCOSVisitor
-
visit
- Specified by:
visitin interfaceCOSVisitor
-
writeComplexObjectSeparator
public void writeComplexObjectSeparator() -
visit
- Specified by:
visitin interfaceCOSVisitor- Throws:
IOException
-
visit
- Specified by:
visitin interfaceCOSVisitor- Throws:
IOException
-
visit
- Specified by:
visitin interfaceCOSVisitor- Throws:
IOException
-
visit
- Specified by:
visitin interfaceCOSVisitor- Throws:
IOException
-
visit
- Specified by:
visitin interfaceCOSVisitor- Throws:
IOException
-
visit
- Specified by:
visitin interfaceCOSVisitor- Throws:
IOException
-
visit
- Specified by:
visitin interfaceCOSVisitor- Throws:
IOException
-
visit
- Specified by:
visitin interfaceCOSVisitor- Throws:
IOException
-
writer
public org.sejda.io.BufferedCountingChannelWriter writer() -
writeDictionaryItemsSeparator
writes the separator after aCOSDictionaryvalue is written, before the next key/value is written.- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-