Top Description Fields Constructors Methods
org.apache.pdfbox.filter

public final Class DecodeResult

extends Object
Class Inheritance
Imports
java.awt.image.BufferedImage, org.apache.pdfbox.cos.COSDictionary, org.apache.pdfbox.pdmodel.graphics.color.PDJPXColorSpace

The result of a filter decode operation. Allows information such as color space to be extracted from image streams, and for stream parameters to be repaired during reading.
Author
John Hewson

Field Summary

Modifier and TypeField and Description
private PDJPXColorSpace
private final COSDictionary
private BufferedImage

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
DecodeResult(COSDictionary parameters, PDJPXColorSpace colorSpace)

Method Summary

Modifier and TypeMethod and Description
public static DecodeResult

Returns:

a default instance of DecodeResult
createDefault
()

Return a default DecodeResult.

public PDJPXColorSpace

Returns:

the embedded JPX color space, or null if there is none.
getJPXColorSpace
()

Returns the embedded JPX color space, if any.

public BufferedImage
public COSDictionary

Returns:

the repaired stream parameters, or an empty dictionary
getParameters
()

Returns the stream parameters, repaired using the embedded stream data.

pack-priv void
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

colorSpaceback to summary
private PDJPXColorSpace colorSpace
parametersback to summary
private final COSDictionary parameters
smaskback to summary
private BufferedImage smask

Constructor Detail

DecodeResultback to summary
pack-priv DecodeResult(COSDictionary parameters)
DecodeResultback to summary
pack-priv DecodeResult(COSDictionary parameters, PDJPXColorSpace colorSpace)

Method Detail

createDefaultback to summary
public static DecodeResult createDefault()

Return a default DecodeResult.

Returns:DecodeResult

a default instance of DecodeResult

getJPXColorSpaceback to summary
public PDJPXColorSpace getJPXColorSpace()

Returns the embedded JPX color space, if any.

Returns:PDJPXColorSpace

the embedded JPX color space, or null if there is none.

getJPXSMaskback to summary
public BufferedImage getJPXSMask()
getParametersback to summary
public COSDictionary getParameters()

Returns the stream parameters, repaired using the embedded stream data.

Returns:COSDictionary

the repaired stream parameters, or an empty dictionary

setColorSpaceback to summary
pack-priv void setColorSpace(PDJPXColorSpace colorSpace)
setJPXSMaskback to summary
pack-priv void setJPXSMask(BufferedImage smask)