com.cometway.xml
Class XML

java.lang.Object
  extended by com.cometway.xml.XML

public final class XML
extends java.lang.Object

This is a final class that contains constants used by the XML package.


Field Summary
static int ELEMENT_CONTENT
          An int value of 2 representing element contents.
static int EMPTY_ELEMENT_TAG
          An int value of 0 representing an empty element tag.
static int END_TAG
          An int value of 3 representing a end element tag.
static int START_TAG
          An int value of 1 representing a start element tag.
static java.lang.String XML_10_HEADER
          The standard <?xml version="1.0"?> file header for XML 1.0 standard documents.
 
Method Summary
static java.lang.String decode(java.lang.String in)
          This method decodes all the XML 1.0 escape codes in the String parameter.
static java.lang.String encode(java.lang.String s)
          Encodes the specified string suitably for element content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_10_HEADER

public static final java.lang.String XML_10_HEADER
The standard <?xml version="1.0"?> file header for XML 1.0 standard documents.

See Also:
Constant Field Values

EMPTY_ELEMENT_TAG

public static final int EMPTY_ELEMENT_TAG
An int value of 0 representing an empty element tag.

See Also:
Constant Field Values

START_TAG

public static final int START_TAG
An int value of 1 representing a start element tag.

See Also:
Constant Field Values

ELEMENT_CONTENT

public static final int ELEMENT_CONTENT
An int value of 2 representing element contents.

See Also:
Constant Field Values

END_TAG

public static final int END_TAG
An int value of 3 representing a end element tag.

See Also:
Constant Field Values
Method Detail

encode

public static final java.lang.String encode(java.lang.String s)
Encodes the specified string suitably for element content.


decode

public static java.lang.String decode(java.lang.String in)
This method decodes all the XML 1.0 escape codes in the String parameter.