java.lang.Object
org.sejda.sambox.output.ObjectsStreamPDFBodyObjectsWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,PDFBodyObjectsWriter
Implementation of a PDFBodyObjectsWriter where objects are written to an ObjectsStream and later the ObjectsStream is
written as COSStream using the delegate
PDFBodyObjectsWriter-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PDFWriteContextprivate PDFBodyObjectsWriterprivate static final org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionObjectsStreamPDFBodyObjectsWriter(PDFWriteContext context, PDFBodyObjectsWriter delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private voidvoidcallback to perform once all the objects have been writtenvoid
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
context
-
delegate
-
currentStream
-
-
Constructor Details
-
ObjectsStreamPDFBodyObjectsWriter
-
-
Method Details
-
writeObject
- Specified by:
writeObjectin interfacePDFBodyObjectsWriter- Throws:
IOException
-
doWriteObjectsStream
- Throws:
IOException
-
onWriteCompletion
Description copied from interface:PDFBodyObjectsWritercallback to perform once all the objects have been written- Specified by:
onWriteCompletionin interfacePDFBodyObjectsWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-