Package org.apache.pdfbox.filter
Class DecodeResult
java.lang.Object
org.apache.pdfbox.filter.DecodeResult
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PDJPXColorSpace
static final DecodeResult
Default decode result.private final COSDictionary
-
Constructor Summary
ConstructorsConstructorDescriptionDecodeResult
(COSDictionary parameters) DecodeResult
(COSDictionary parameters, PDJPXColorSpace colorSpace) -
Method Summary
Modifier and TypeMethodDescriptionReturns the embedded JPX color space, if any.Returns the stream parameters, repaired using the embedded stream data.(package private) void
setColorSpace
(PDJPXColorSpace colorSpace)
-
Field Details
-
DEFAULT
Default decode result. -
parameters
-
colorSpace
-
-
Constructor Details
-
DecodeResult
DecodeResult(COSDictionary parameters) -
DecodeResult
DecodeResult(COSDictionary parameters, PDJPXColorSpace colorSpace)
-
-
Method Details
-
getParameters
Returns the stream parameters, repaired using the embedded stream data.- Returns:
- the repaired stream parameters, or an empty dictionary
-
getJPXColorSpace
Returns the embedded JPX color space, if any.- Returns:
- the embedded JPX color space, or null if there is none.
-
setColorSpace
-