APIdia Launch Partner
Top Description Constructors Methods
javax.xml.catalog

pack-priv Class Normalizer

extends Object
Class Inheritance
Imports
java.net.URLDecoder, .URLEncoder

The Normalizer is responsible for normalizing Public and System Identifiers as specified in section 6.2, 6.3 and 6.4 of the specification XML Catalogs, OASIS Standard V1.1, 7 October 2005.
Since
9

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static String

Returns:

The normalized identifier
decodeURN
(String
The urn:publicid: URN
urn
)

Decode a "publicid" URN into a public identifier.

pack-priv static String

Returns:

The normalized identifier
encodeURN
(String
The unnormalized public identifier
publicId
)

Encode a public identifier as a "publicid" URN.

pack-priv static String

Returns:

The normalized identifier
normalizePublicId
(String
The unnormalized public identifier
publicId
)

Normalize a public identifier in accordance with section 6.2 of the Catalog specification.

pack-priv static String

Returns:

The normalized URI reference
normalizeURI
(String
The URI reference
uriref
)

Perform character normalization on a URI reference.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Normalizerback to summary
pack-priv Normalizer()

Method Detail

decodeURNback to summary
pack-priv static String decodeURN(String urn)

Decode a "publicid" URN into a public identifier.

Parameters
urn:String

The urn:publicid: URN

Returns:String

The normalized identifier

Exceptions
CatalogException:
if decoding failed
encodeURNback to summary
pack-priv static String encodeURN(String publicId)

Encode a public identifier as a "publicid" URN.

Parameters
publicId:String

The unnormalized public identifier

Returns:String

The normalized identifier

Exceptions
CatalogException:
if encoding failed
normalizePublicIdback to summary
pack-priv static String normalizePublicId(String publicId)

Normalize a public identifier in accordance with section 6.2 of the Catalog specification.

All strings of white space in public identifiers must be normalized to single space characters (#x20), and leading and trailing white space must be removed.

Parameters
publicId:String

The unnormalized public identifier

Returns:String

The normalized identifier

normalizeURIback to summary
pack-priv static String normalizeURI(String uriref)

Perform character normalization on a URI reference.

Parameters
uriref:String

The URI reference

Returns:String

The normalized URI reference