java.lang.Object
org.sejda.sambox.output.IncrementablePDDocumentWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
Writer for a
IncrementablePDDocument. This component provides methods to write a
IncrementablePDDocument to a CountingWritableByteChannel performing an incremental update.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.sejda.io.CountingWritableByteChannelprivate PDFWriteContextprivate static final org.slf4j.Loggerprivate Set<WriteOption>private DefaultPDFWriter -
Constructor Summary
ConstructorsConstructorDescriptionIncrementablePDDocumentWriter(org.sejda.io.CountingWritableByteChannel channel, WriteOption... options) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private PDFBodyObjectsWriterobjectStreamWriter(PDFBodyObjectsWriter wrapped) private PDFBodyObjectsWriterprivate voidsanitizeWriteOptions(IncrementablePDDocument document) voidwrite(IncrementablePDDocument document) Writes thePDDocument.private voidwriteBody(IncrementablePDDocument document) private voidwriteXref(IncrementablePDDocument document)
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
writer
-
context
-
channel
private org.sejda.io.CountingWritableByteChannel channel -
options
-
-
Constructor Details
-
IncrementablePDDocumentWriter
public IncrementablePDDocumentWriter(org.sejda.io.CountingWritableByteChannel channel, WriteOption... options)
-
-
Method Details
-
write
Writes thePDDocument.- Parameters:
document-standardSecurity-- Throws:
IOException
-
sanitizeWriteOptions
-
writeBody
- Throws:
IOException
-
objectsWriter
-
objectStreamWriter
-
writeXref
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-