Package com.itextpdf.kernel.pdf
Class PdfOutputStream
- All Implemented Interfaces:
-
Closeable
,Flushable
,AutoCloseable
- Direct Known Subclasses:
-
PdfWriter
-
Field Summary
Modifier and TypeFieldDescriptionprotected PdfEncryption
Contains the business logic for cryptography.protected PdfDocument
Document associated with PdfOutputStream.Fields inherited from class com.itextpdf.io.source.OutputStream
closeStream, currentPos, outputStream
-
Constructor Summary
ConstructorDescriptionPdfOutputStream
(OutputStream outputStream) Create a pdfOutputSteam writing to the passed OutputStream. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkEncryption
(PdfStream pdfStream) protected boolean
containsFlateFilter
(PdfStream pdfStream) protected byte[]
decodeFlateBytes
(PdfStream stream, byte[] bytes) protected void
updateCompressionFilter
(PdfStream pdfStream) Write a PdfObject to the outputstream.Methods inherited from class com.itextpdf.io.source.OutputStream
assignBytes, close, flush, getCurrentPos, getHighPrecision, getLocalHighPrecision, getOutputStream, isCloseStream, reset, setCloseStream, setHighPrecision, setLocalHighPrecision, write, write, write, writeByte, writeByte, writeBytes, writeBytes, writeDouble, writeDouble, writeFloat, writeFloat, writeFloats, writeInteger, writeLong, writeNewLine, writeSpace, writeString
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
document
Document associated with PdfOutputStream. -
crypto
Contains the business logic for cryptography.
-
-
Constructor Details
-
PdfOutputStream
Create a pdfOutputSteam writing to the passed OutputStream.- Parameters:
-
outputStream
- Outputstream to write to.
-
-
Method Details
-
write
Write a PdfObject to the outputstream.- Parameters:
-
pdfObject
- PdfObject to write - Returns:
- this PdfOutPutStream
-
checkEncryption
-
containsFlateFilter
-
updateCompressionFilter
-
decodeFlateBytes
-