COSObjects in a stream. It
may be added to the top level container of a written PDF document in place of the compressed objects. The document's
PDFXRefStream must be adapted accordingly.
| Modifier and Type | Field and Description |
|---|---|
| private final COSWriterCompressionPool | |
| private static final Log | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | COSWriterObjectStream(COSWriterCompressionPool
The compression pool an object stream shall be created for. compressionPool)Creates an object stream for compressible objects from the given |
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: AllCOSObjectKeys, that shall be added to the object stream.Returns all |
| public void | prepareStreamObject(COSObjectKey
The key, COSBase COSObjectKey, that shall be used for indirect references to the COSObject.The object)COSObject, that shall be written to this object stream.Prepares the given |
| private void | writeCOSArray(OutputStream
The stream, that shall be written to. output, COSArray The content, that shall be written. cosArray)Write the given |
| private void | writeCOSBoolean(OutputStream
The stream, that shall be written to. output, COSBoolean The content, that shall be written. cosBoolean)Write the given |
| private void | writeCOSDictionary(OutputStream
The stream, that shall be written to. output, COSDictionary The content, that shall be written. cosDictionary)Write the given |
| private void | writeCOSFloat(OutputStream
The stream, that shall be written to. output, COSFloat The content, that shall be written. cosFloat)Write the given |
| private void | writeCOSInteger(OutputStream
The stream, that shall be written to. output, COSInteger The content, that shall be written. cosInteger)Write the given |
| private void | writeCOSName(OutputStream
The stream, that shall be written to. output, COSName The content, that shall be written. cosName)Write the given |
| private void | writeCOSNull(OutputStream
The stream, that shall be written to. output)Write |
| private void | writeCOSString(OutputStream
The stream, that shall be written to. output, COSString The content, that shall be written. cosString)Write the given |
| private void | writeObject(OutputStream
The stream, that shall be written to. output, COSBase The content, that shall be written. object, boolean True, if the currently written object is a top level entry of this object stream. topLevel)This method prepares and writes COS data to the object stream by selecting appropriate specialized methods for the content. |
| private void | writeObjectReference(OutputStream
The stream, that shall be written to. output, COSObjectKey The content, that shall be written. indirectReference)Write the given |
| public COSStream | Returns: The givenCOSStream of this object stream.The stream for the compressed objects. stream) |
| compressionPool | back to summary |
|---|---|
| private final COSWriterCompressionPool compressionPool | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| preparedKeys | back to summary |
|---|---|
| private final List<COSObjectKey> preparedKeys | |
| preparedObjects | back to summary |
|---|---|
| private final List<COSBase> preparedObjects | |
| COSWriterObjectStream | back to summary |
|---|---|
| public COSWriterObjectStream(COSWriterCompressionPool compressionPool) Creates an object stream for compressible objects from the given
| |
| getPreparedKeys | back to summary |
|---|---|
| public List Returns all
| |
| prepareStreamObject | back to summary |
|---|---|
| public void prepareStreamObject(COSObjectKey key, COSBase object) Prepares the given
| |
| writeCOSArray | back to summary |
|---|---|
| private void writeCOSArray(OutputStream output, COSArray cosArray) throws IOException Write the given
| |
| writeCOSBoolean | back to summary |
|---|---|
| private void writeCOSBoolean(OutputStream output, COSBoolean cosBoolean) throws IOException Write the given
| |
| writeCOSDictionary | back to summary |
|---|---|
| private void writeCOSDictionary(OutputStream output, COSDictionary cosDictionary) throws IOException Write the given
| |
| writeCOSFloat | back to summary |
|---|---|
| private void writeCOSFloat(OutputStream output, COSFloat cosFloat) throws IOException Write the given
| |
| writeCOSInteger | back to summary |
|---|---|
| private void writeCOSInteger(OutputStream output, COSInteger cosInteger) throws IOException Write the given
| |
| writeCOSName | back to summary |
|---|---|
| private void writeCOSName(OutputStream output, COSName cosName) throws IOException Write the given
| |
| writeCOSNull | back to summary |
|---|---|
| private void writeCOSNull(OutputStream output) throws IOException Write
| |
| writeCOSString | back to summary |
|---|---|
| private void writeCOSString(OutputStream output, COSString cosString) throws IOException Write the given
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(OutputStream output, COSBase object, boolean topLevel) throws IOException This method prepares and writes COS data to the object stream by selecting appropriate specialized methods for the content.
| |
| writeObjectReference | back to summary |
|---|---|
| private void writeObjectReference(OutputStream output, COSObjectKey indirectReference) throws IOException Write the given
| |
| writeObjectsToStream | back to summary |
|---|---|
| public COSStream writeObjectsToStream(COSStream stream) throws IOException Writes all prepared
| |