org.foray.pdf.object
Class PDFICCStream

java.lang.Object
  extended by org.foray.pdf.object.PDFObject
      extended by org.foray.pdf.object.PDFStream
          extended by org.foray.pdf.object.PDFICCStream

public class PDFICCStream
extends PDFStream

Specialized PDFStream for an ICC Colorspace.


Field Summary
 
Fields inherited from class org.foray.pdf.object.PDFObject
EOL, MSG_EOL, XREF_EOL
 
Constructor Summary
PDFICCStream(PDFDocument doc, ICC_ColorSpace cs)
          Constructor.
 
Method Summary
protected  void finalizeStreamContent()
          This method is an explicit opportunity for subclasses to finish writing whatever content may still need to be written to the stream before the dictionary and stream contents are written.
protected  String specialStreamDictEntries()
          Subclasses return any specialized dictionary entries here, so that they are included when writing the stream dictionary.
 
Methods inherited from class org.foray.pdf.object.PDFStream
add, addDefaultFilters, addEncryption, addFilter, addFilter, applyFilters, getDataLength, getOutputStream, output, outputStreamData, setData, setOutputStream, toPDF
 
Methods inherited from class org.foray.pdf.object.PDFObject
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, pdfID, pdfReference, setNumber, stringToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFICCStream

public PDFICCStream(PDFDocument doc,
                    ICC_ColorSpace cs)
Constructor.

Parameters:
doc - The parent PDF document.
cs - The ICC color space for this stream.
Method Detail

finalizeStreamContent

protected void finalizeStreamContent()
                              throws org.axsl.pdf.PdfException
Description copied from class: PDFStream
This method is an explicit opportunity for subclasses to finish writing whatever content may still need to be written to the stream before the dictionary and stream contents are written.

Specified by:
finalizeStreamContent in class PDFStream
Throws:
org.axsl.pdf.PdfException - For errors writing stream content.

specialStreamDictEntries

protected String specialStreamDictEntries()
Description copied from class: PDFStream
Subclasses return any specialized dictionary entries here, so that they are included when writing the stream dictionary.

Specified by:
specialStreamDictEntries in class PDFStream
Returns:
Any specialized dictionary entries.


Copyright © 2017. All rights reserved.