Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.spatial
Class XMLEncoder

java.lang.Object
  extended byoracle.panama.spatial.XMLEncoder


public class XMLEncoder
extends java.lang.Object

This class can be used to escape the special characters in a given string.


Constructor Summary
XMLEncoder()

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

Constructor Detail

XMLEncoder

public XMLEncoder()

Method Detail

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

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.