| Modifier and Type | Field and Description |
|---|---|
static String |
ApplyBlackList |
static String |
ApplyWhiteList |
static String |
BlackList |
static String |
WhiteList |
| Constructor and Description |
|---|
XmpFilterBlackWhite() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
filter(InputStream xmpIS)
Filter XMP properties from an XML inputstream and return the filtered XML in a new inputstream.
|
boolean |
isActive() |
void |
setConfig(Dictionary cfg) |
InputStream |
sieve(InputStream xmpIS)
Sieve XMP properties from an XML inputstream and return the properties hold back during filtering
in a new XMP document.
|
public static final String ApplyWhiteList
public static final String WhiteList
public static final String ApplyBlackList
public static final String BlackList
public void setConfig(Dictionary cfg)
public InputStream filter(InputStream xmpIS) throws IOException
XmpFilterfilter in interface XmpFilterxmpIS - the XML for filteringIOExceptionpublic InputStream sieve(InputStream xmpIS) throws IOException
XmpFilterXmpFilter.filter(InputStream) may return the partial contents of an array XMP property (e.g.
the first 10 entries). XmpFilter.sieve(InputStream) will either report the complete array or
ignore the property.
Example: during ingestion, all but the first entry in xmpMM:History is filtered. The reported
metadata contains just this one entry. If this metadata was written back to the document, all
existing subsequent xmpMM:History entries would be overwritten and lost.
The XmpFilter.sieve(InputStream), called on the original data, will return such a property in full,
e.g. the complete xmpMM:History. This allows the caller to merge changes as it desires.sieve in interface XmpFilterxmpIS - the XML for sievingIOException"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"