java.lang.Object
org.sejda.sambox.output.DefaultCOSWriter
org.sejda.sambox.output.ContentStreamWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,COSVisitor,COSWriter
-
Field Summary
Fields inherited from class org.sejda.sambox.output.DefaultCOSWriter
PERCENT_SIGN, SPACE -
Constructor Summary
ConstructorsConstructorDescriptionContentStreamWriter(org.sejda.io.BufferedCountingChannelWriter writer) ContentStreamWriter(org.sejda.io.CountingWritableByteChannel channel) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvisit(IndirectCOSObjectReference value) voidwriteComment(String comment) voidvoidwriteContent(byte[] byteArray) Writes the byte array as is as content of the stream.voidwriteEOL()voidwriteOperator(List<COSBase> operands, Operator operator) private voidwriteOperator(Operator token) voidvoidwriteTokens(List<Object> tokens) voidwriteTokens(Operator... tokens) Methods inherited from class org.sejda.sambox.output.DefaultCOSWriter
visit, visit, visit, visit, visit, visit, visit, visit, writer, writeValueMethods 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
visitMethods inherited from interface org.sejda.sambox.output.COSWriter
close, writeDictionaryItemsSeparator
-
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
-
writeOperator
- Throws:
IOException
-
visit
- Specified by:
visitin interfaceCOSVisitor- Overrides:
visitin classDefaultCOSWriter
-
visit
- Specified by:
visitin interfaceCOSVisitor- Overrides:
visitin classDefaultCOSWriter
-
writeComplexObjectSeparator
public void writeComplexObjectSeparator()Description copied from interface:COSWriter
-