public class Canonicalize extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CANONICALWITH
Canonicalization type: generic canonicalization.
|
static int |
CANONICALWITHOUT
Canonicalization type: generic canonicalization
with all comments removed.
|
static int |
EXCLUSIVEWITH
Canonicalization type: exclusive canonicalization.
|
static int |
EXCLUSIVEWITHOUT
Canonicalization type: exclusive canonicalization
with all comments removed.
|
static int |
SAVEWITH
Canonicalization type: generic canonicalization
without the use of context namespaces.
|
static int |
SAVEWITHOUT
Canonicalization type: generic canonicalization
without the use of context namespaces and
with all comments removed.
|
Constructor and Description |
---|
Canonicalize()
Instantiates a canonicalization service.
|
Canonicalize(boolean bLegacy_V32_Canonicalization)
Instantiates a canonicalization service.
|
Canonicalize(List<? extends Node> store,
boolean bWithDescendants,
boolean bLegacy_V32_Canonicalization)
Instantiates a canonicalization service.
|
Canonicalize(Node node,
boolean bInPlace,
boolean bLegacy_V32_Canonicalization)
Instantiates a canonicalization service.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
canonicalize(int eCanonicalType,
List<String> inclusiveNSPrefixList)
Performs text normalization of a set of nodes.
|
Document |
canonicalize(List<? super Node> retList,
int eCanonicalType,
List<String> inclusiveNSPrefixList)
Performs text normalization of a set of nodes.
|
void |
canonicalize(OutputStream out,
int eCanonicalType,
List<String> inclusiveNSPrefixList)
Performs text normalization of a set of nodes.
|
DOMSaveOptions |
getSaveOptions()
Gets the save options for canonicalized data.
|
void |
setData(Object node)
Set the data for this canonicalize to work on.
|
public static final int CANONICALWITH
public static final int CANONICALWITHOUT
public static final int EXCLUSIVEWITH
public static final int EXCLUSIVEWITHOUT
public static final int SAVEWITH
public static final int SAVEWITHOUT
public Canonicalize()
public Canonicalize(boolean bLegacy_V32_Canonicalization)
bLegacy_V32_Canonicalization
- legacy protected canonicalization flagpublic Canonicalize(Node node, boolean bInPlace, boolean bLegacy_V32_Canonicalization)
node
- a node to be canonicalized along with its children.bInPlace
- whether to perform canonicalization on the node specifiedbLegacy_V32_Canonicalization
- legacy protected canonicalization flag *
or on a copy.public Canonicalize(List<? extends Node> store, boolean bWithDescendants, boolean bLegacy_V32_Canonicalization)
store
- a list of nodes to be canonicalized.bWithDescendants
- when true
, canonicalize the descendants andbLegacy_V32_Canonicalization
- legacy protected canonicalization flag *
attributes of each node in the list; otherwise, do not.public Document canonicalize(List<? super Node> retList, int eCanonicalType, List<String> inclusiveNSPrefixList)
retList
- a list given by the caller to be populated with
canonicalized node
s, by this method.eCanonicalType
- the canonicalization type to use.inclusiveNSPrefixList
- a list of namespace prefixes that are
handled as though performing non-exclusive canonicalization,
when exclusive canonicalization type is specified.public byte[] canonicalize(int eCanonicalType, List<String> inclusiveNSPrefixList)
eCanonicalType
- the canonicalization type to use: one of
CANONICALWITH
,
CANONICALWITHOUT
,
EXCLUSIVEWITH
or
EXCLUSIVEWITHOUT
.inclusiveNSPrefixList
- a list of namespace prefixes that are
handled as though performing non-exclusive canonicalization,
when exclusive canonicalization type is specified.public void canonicalize(OutputStream out, int eCanonicalType, List<String> inclusiveNSPrefixList)
out
- the stream to be populated with the the
canonicalized data. The stream will be UTF-8 encoded.eCanonicalType
- the canonicalization type to use: one of
CANONICALWITH
,
CANONICALWITHOUT
,
EXCLUSIVEWITH
or
EXCLUSIVEWITHOUT
.inclusiveNSPrefixList
- a list of namespace prefixes that are
handled as though performing non-exclusive canonicalization,
when exclusive canonicalization type is specified.public DOMSaveOptions getSaveOptions()
public void setData(Object node)
node
- a node to be canonicalized along with its children.Copyright © 2010 - 2020 Adobe. All Rights Reserved