org.apache.xml.resolver.helpers
Class PublicId
public abstract class PublicId
Static methods for dealing with public identifiers.
This class defines a set of static methods that can be called
to handle public identifiers.
static String | decodeURN(String urn) - Decode a "publicid" URN into a public identifier.
|
static String | encodeURN(String publicId) - Encode a public identifier as a "publicid" URN.
|
static String | normalize(String publicId) - Normalize a public identifier.
|
PublicId
protected PublicId()
decodeURN
public static String decodeURN(String urn)
Decode a "publicid" URN into a public identifier.
This method is declared static so that other classes
can use it directly.
urn
- The urn:publicid: URN
- The normalized identifier.
encodeURN
public static String encodeURN(String publicId)
Encode a public identifier as a "publicid" URN.
This method is declared static so that other classes
can use it directly.
publicId
- The unnormalized public identifier.
- The normalized identifier.
normalize
public static String normalize(String publicId)
Normalize a public identifier.
Public identifiers must be normalized according to the following
rules before comparisons between them can be made:
- Whitespace characters are normalized to spaces (e.g., line feeds,
tabs, etc. become spaces).
- Leading and trailing whitespace is removed.
- Multiple internal whitespaces are normalized to a single
space.
This method is declared static so that other classes
can use it directly.
publicId
- The unnormalized public identifier.
- The normalized identifier.
Copyright B) 2001-2003 Apache Software Foundation. All Rights Reserved.