oracle.panama.spatial
Class XMLEncoder
java.lang.Object
oracle.panama.spatial.XMLEncoder
- public class XMLEncoder
- extends java.lang.Object
This class can be used to escape the special characters in a given string.
Method Summary |
static java.lang.String |
encodeToSimplifiedXML(java.lang.String orig)
Encode only the basic (256) characters in the given string |
static java.lang.String |
encodeToXML(java.lang.String orig)
Encode the given string |
static java.lang.String |
encodeToXML(java.lang.String orig, java.util.HashMap map)
Encode using the given map of characters/encoded values |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLEncoder
public XMLEncoder()
encodeToSimplifiedXML
public static java.lang.String encodeToSimplifiedXML(java.lang.String orig)
- Encode only the basic (256) characters in the given string
-
- Parameters:
orig
- the original string
- Returns:
- the encoded string
encodeToXML
public static java.lang.String encodeToXML(java.lang.String orig)
- Encode the given string
-
- Parameters:
orig
- the original string
- Returns:
- the encoded string
encodeToXML
public static java.lang.String encodeToXML(java.lang.String orig,
java.util.HashMap map)
- Encode using the given map of characters/encoded values
-
- Parameters:
orig
- the original string
map
- the map of characters/encoded values to use
- Returns:
- the encoded string
Copyright © 2004 Oracle Corporation. All Rights Reserved.