public class PDFICCStream extends PDFStream
Constructor and Description |
---|
PDFICCStream() |
Modifier and Type | Method and Description |
---|---|
ICC_Profile |
getICCProfile()
Returns the associated ICC profile.
|
int |
output(OutputStream stream)
overload the base object method so we don't have to copy
byte arrays around so much
Overload the base object method so we don't have to copy
byte arrays around so much
Write the PDF represention of this object
|
protected void |
outputRawStreamData(OutputStream out)
Sends the raw stream data to the target OutputStream.
|
protected void |
populateStreamDict(Object lengthEntry)
Populates the dictionary with all necessary entries for the stream.
|
void |
setColorSpace(ICC_Profile icc,
PDFDeviceColorSpace alt)
Sets the color space to encode in PDF.
|
add, add, getBufferOutputStream, getBufferWriter, getDataLength, getSizeHint, setData, streamHashCode
encodeAndWriteStream, encodeStream, get, getChildren, getDefaultFilterName, getDictionary, getFilterList, multipleFiltersAllowed, outputStreamData, prepareImplicitFilters, put, registerChildren, setDocument, setupFilterList, supportsObjectStream
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
public PDFICCStream()
PDFObject.PDFObject()
public void setColorSpace(ICC_Profile icc, PDFDeviceColorSpace alt)
icc
- the ICC profilealt
- the PDF color spacepublic ICC_Profile getICCProfile()
public int output(OutputStream stream) throws IOException
output
in class PDFStream
stream
- the stream to write the PDF toIOException
- if there is an error writing to the streamprotected void outputRawStreamData(OutputStream out) throws IOException
outputRawStreamData
in class PDFStream
out
- OutputStream to write toIOException
- In case of an I/O problemprotected void populateStreamDict(Object lengthEntry)
populateStreamDict
in class AbstractPDFStream
lengthEntry
- value for the /Length entryCopyright © 2025 Apache Software Foundation. All rights reserved.