public class FilterStream extends Object
| Constructor and Description |
|---|
FilterStream() |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
applyFilter(InputStream srcStm,
ASName curFilter,
FilterParams params)
Apply a named input filter to the stream.
|
static InputStream |
applyFilter(InputStream inStm,
ASName filterName,
FilterParams params,
CustomFilterRegistry filterRegistry)
Apply a named input filter to the stream.A PDFCosParseException is thrown for
filter names that are not supported or incorrect.
|
static OutputStream |
applyFilter(OutputStream inStm,
ASName filterName,
FilterParams params)
Apply a named output filter to the stream.
|
static OutputStream |
applyFilter(OutputStream inStm,
ASName filterName,
FilterParams params,
CustomFilterRegistry filterRegistry)
Apply a named output filter to the stream.
|
static FilterParams |
buildFilterParams(ASObject parmsObj)
Build a suitable FilterParams class from the contents of the
DecodeParms field of an inline image's image dict.
|
static FilterParams |
buildFilterParams(CosObject parmsObj)
Build a suitable FilterParams class from the contents of the
DecodeParms field of CosStream.
|
static ASDictionary |
updateCustomFilterParams(ASName filterName,
ASDictionary params,
CustomFilterRegistry filterRegistry)
Checks if the filter is a custom encode filter and then updates the filterParams based on
functionality available to the custom encode filter
|
static CosObject |
updateCustomFilterParams(ASName filterName,
CosObject params,
CustomFilterRegistry filterRegistry)
Checks if the filter is a custom encode filter and then updates the filterParams based on
functionality available to the custom encode filter
|
public static FilterParams buildFilterParams(CosObject parmsObj) throws PDFCosParseException, PDFIOException, PDFSecurityException
parmsObj - PDFCosParseExceptionPDFIOExceptionPDFSecurityExceptionpublic static FilterParams buildFilterParams(ASObject parmsObj) throws PDFInvalidParameterException
parmsObj - PDFInvalidParameterExceptionpublic static InputStream applyFilter(InputStream inStm, ASName filterName, FilterParams params, CustomFilterRegistry filterRegistry) throws PDFCosParseException, IOException
inStm - filterName - params - filterRegistry - PDFCosParseExceptionIOExceptionpublic static OutputStream applyFilter(OutputStream inStm, ASName filterName, FilterParams params, CustomFilterRegistry filterRegistry) throws PDFCosParseException
PDFCosParseException - if we get a junk filter name.
There are valid filters (like DCTDecode for images) that we really
don't support, but there's no way to get here with those unless
the client tries to extract the stream content directly.public static InputStream applyFilter(InputStream srcStm, ASName curFilter, FilterParams params) throws PDFCosParseException, IOException
PDFCosParseException - if we get a junk filter name.
There are valid filters that we really
don't support, but there's no way to get here with those unless
the client tries to extract the stream content directly.IOExceptionpublic static OutputStream applyFilter(OutputStream inStm, ASName filterName, FilterParams params) throws PDFCosParseException
PDFCosParseException - if we get a junk filter name.
There are valid filters (like DCTDecode for images) that we really
don't support, but there's no way to get here with those unless
the client tries to extract the stream content directly.public static CosObject updateCustomFilterParams(ASName filterName, CosObject params, CustomFilterRegistry filterRegistry) throws PDFCosParseException, PDFIOException, PDFSecurityException
filterName - params - filterRegistry - PDFCosParseExceptionPDFIOExceptionPDFSecurityExceptionpublic static ASDictionary updateCustomFilterParams(ASName filterName, ASDictionary params, CustomFilterRegistry filterRegistry) throws PDFInvalidParameterException
filterName - params - filterRegistry - PDFInvalidParameterExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved