java.lang.Object
org.sejda.sambox.output.DefaultCOSWriter
org.sejda.sambox.output.IndirectReferencesAwareCOSWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,COSVisitor,COSWriter
- Direct Known Subclasses:
EncryptingIndirectReferencesAwareCOSWriter
COSWriter implementation that writes dictionary and array values as indirect references if they have been
added as indirect references to the context.-
Field Summary
FieldsFields inherited from class org.sejda.sambox.output.DefaultCOSWriter
PERCENT_SIGN, SPACE -
Constructor Summary
ConstructorsConstructorDescriptionIndirectReferencesAwareCOSWriter(org.sejda.io.BufferedCountingChannelWriter writer, PDFWriteContext context) IndirectReferencesAwareCOSWriter(org.sejda.io.CountingWritableByteChannel channel, PDFWriteContext context) -
Method Summary
Modifier and TypeMethodDescription(package private) voidwriteValue(COSBase value) writes the given dictionary or array value itemMethods inherited from class org.sejda.sambox.output.DefaultCOSWriter
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, writerMethods 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, writeComplexObjectSeparator, writeDictionaryItemsSeparator
-
Field Details
-
context
-
-
Constructor Details
-
IndirectReferencesAwareCOSWriter
IndirectReferencesAwareCOSWriter(org.sejda.io.CountingWritableByteChannel channel, PDFWriteContext context) -
IndirectReferencesAwareCOSWriter
IndirectReferencesAwareCOSWriter(org.sejda.io.BufferedCountingChannelWriter writer, PDFWriteContext context)
-
-
Method Details
-
writeValue
writes the given dictionary or array value item- Overrides:
writeValuein classDefaultCOSWriter- Throws:
IOException
-