org.inria.ns.reflex.processor.catalog
Class CatalogReader.PublicId

java.lang.Object
  extended by org.inria.ns.reflex.processor.catalog.CatalogReader.PublicId
Enclosing class:
CatalogReader

public abstract static class CatalogReader.PublicId
extends Object

Static methods for dealing with public identifiers.

Author:
Philippe Poulard

Method Summary
static String decodePublicId(String urn)
          Decode a "publicid" URN into a public identifier.
static String encodePublicId(String publicId)
          Encode a public identifier as a "publicid" URN.
static String normalize(String str)
          XML normalization of white spaces.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

normalize

public static String normalize(String str)
XML normalization of white spaces.

Parameters:
str - The string to normalize.
Returns:
The normalized string.

decodePublicId

public static String decodePublicId(String urn)
Decode a "publicid" URN into a public identifier.

Parameters:
urn - The URN form of the public identifier : urn:publicid:....
Returns:
The normalized public identifier.

encodePublicId

public static String encodePublicId(String publicId)
Encode a public identifier as a "publicid" URN.

Parameters:
publicId - The public identifier.
Returns:
The URN form of the public identifier : urn:publicid:....