|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kxml.Xml
A class containing several static xml methods, mainly for escaping special characters like angle brakets and quotes. This class contains also some (partially shared) constants for the parser and kDOM.
Field Summary | |
static int |
COMMENT
Integer constant for comments |
static int |
DOCTYPE
Integer constant for doctype |
static int |
ELEMENT
Integer constant for elements |
static int |
ENCODE_128
forces escaping of all character coded greater than 127 |
static int |
ENCODE_MIN
minimum escaping, quotes are not escaped |
static int |
ENCODE_QUOT
forces escaping of quotes |
static int |
END_DOCUMENT
Integer constant returned by ParseEvent.getType if the end of the document has been reached |
static int |
END_TAG
Integer constant assigned to an EndTag parse event |
static java.lang.String |
NO_NAMESPACE
|
static int |
PROCESSING_INSTRUCTION
Integer constant assigned to a processing instruction |
static int |
START_DOCUMENT
XmlReader return value before the first call to next or skip |
static int |
START_TAG
Integer constant assigned to StartTag parse event |
static int |
TEXT
Integer constant assigned to text nodes and events |
static int |
WAP_EXTENSION
Constant identifying wap extension events |
static int |
WHITESPACE
Integer constant for whitespace nodes and events |
Constructor Summary | |
Xml()
|
Method Summary | |
static java.lang.String |
encode(java.lang.String raw)
convenience method for encode (String raw, ENCODE_MIN) |
static java.lang.String |
encode(java.lang.String raw,
int flags)
encodes a string escaping less than etc. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NO_NAMESPACE
public static final int START_DOCUMENT
public static final int COMMENT
public static final int DOCTYPE
public static final int ELEMENT
public static final int END_DOCUMENT
public static final int END_TAG
public static final int PROCESSING_INSTRUCTION
public static final int START_TAG
public static final int TEXT
public static final int WHITESPACE
public static final int ENCODE_MIN
public static final int ENCODE_QUOT
public static int ENCODE_128
public static final int WAP_EXTENSION
Constructor Detail |
public Xml()
Method Detail |
public static java.lang.String encode(java.lang.String raw)
public static java.lang.String encode(java.lang.String raw, int flags)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |