org.apache.fop.pdf

Class PDFICCStream

Implemented Interfaces:
PDFWritable

public class PDFICCStream
extends PDFStream

Special PDFStream for ICC profiles (color profiles).

Field Summary

Fields inherited from class org.apache.fop.pdf.PDFStream

data

Fields inherited from class org.apache.fop.pdf.PDFDictionary

entries, order

Fields inherited from class org.apache.fop.pdf.PDFObject

DATE_FORMAT, log

Constructor Summary

PDFICCStream()

Method Summary

ICC_Profile
getICCProfile()
protected int
output(java.io.OutputStream stream)
overload the base object method so we don't have to copy byte arrays around so much
protected void
outputRawStreamData(OutputStream out)
protected void
populateStreamDict(Object lengthEntry)
void
setColorSpace(ICC_Profile icc, PDFDeviceColorSpace alt)
Sets the color space to encode in PDF.

Methods inherited from class org.apache.fop.pdf.PDFStream

add, getBufferOutputStream, getDataLength, getSizeHint, output, outputRawStreamData, setData

Methods inherited from class org.apache.fop.pdf.AbstractPDFStream

encodeAndWriteStream, encodeStream, getFilterList, getSizeHint, output, outputRawStreamData, outputStreamData, populateStreamDict, prepareImplicitFilters, setupFilterList

Methods inherited from class org.apache.fop.pdf.PDFDictionary

get, output, put, put, writeDictionary

Methods inherited from class org.apache.fop.pdf.PDFObject

encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString

Constructor Details

PDFICCStream

public PDFICCStream()

Method Details

getICCProfile

public ICC_Profile getICCProfile()
Returns:
the ICC profile

output

protected int output(java.io.OutputStream stream)
            throws java.io.IOException
overload the base object method so we don't have to copy byte arrays around so much

outputRawStreamData

protected void outputRawStreamData(OutputStream out)
            throws IOException
Overrides:
outputRawStreamData in interface PDFStream

populateStreamDict

protected void populateStreamDict(Object lengthEntry)
Overrides:
populateStreamDict in interface AbstractPDFStream

setColorSpace

public void setColorSpace(ICC_Profile icc,
                          PDFDeviceColorSpace alt)
Sets the color space to encode in PDF.
Parameters:
icc - the ICC profile
alt - the PDF color space

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.