|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.acorn.lang.XML
public abstract class XML
Encodes and decodes XML strings.
Field Summary | |
---|---|
static String |
AMP
XML reference for &. |
static String |
APOS
XML reference for '. |
static int |
ENTITY_LENGTH
The max length of supported XML entities. |
static String |
EURO
XML reference for €. |
static String |
EXTERNALS
XML reserved external characters. |
static String |
GT
XML reference for >. |
static String |
INTERNALS
XML reserved internal characters. |
static String |
LT
XML reference for <. |
static String |
QUOT
XML reference for ". |
static String |
XAPOS
XML hex reference for '. |
static String |
XML_VERSION_1_0
XML version. |
static String |
XML_VERSION_1_0_UTF_8
XML version with UTF-8 encoding. |
static String |
XQUOT
XML hex reference for ". |
Constructor Summary | |
---|---|
XML()
|
Method Summary | |
---|---|
static String |
fromXML(Object object)
Converts the specified XML encoded object to a text string. |
static String |
fromXML(Object object,
int limit,
String exceptions)
Converts the specified XML encoded object to a text string with exceptions. |
static String |
toName(Object object)
Converts the specified string to a valid id or name attribute. |
static CharSequence |
toXML(char[] chars,
int start,
int count,
int limit,
String encodings,
int offset,
StringBuilder... buffer)
Converts the specified char array to an XML encoded char sequence. |
static CharSequence |
toXML(Object object,
int limit,
String encodings,
int offset,
StringBuilder... buffer)
Converts the specified object to an XML encoded char sequence. |
static CharSequence |
toXML(Object object,
int limit,
String encodings,
StringBuilder... buffer)
Converts the specified object to an XML encoded char sequence. |
static CharSequence |
toXML(Object object,
StringBuilder... buffer)
Converts the specified object to an XML encoded char sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String XML_VERSION_1_0
public static final String XML_VERSION_1_0_UTF_8
public static final String LT
public static final String GT
public static final String AMP
public static final String QUOT
public static final String XQUOT
public static final String APOS
public static final String XAPOS
public static final String EURO
public static final String INTERNALS
public static final String EXTERNALS
public static final int ENTITY_LENGTH
Constructor Detail |
---|
public XML()
Method Detail |
---|
public static CharSequence toXML(Object object, StringBuilder... buffer)
object
- the object to convert.buffer
- an optional result buffer.
public static CharSequence toXML(Object object, int limit, String encodings, StringBuilder... buffer)
object
- the object to convert.limit
- the encoding limit.encodings
- a list of encodings.buffer
- an optional result buffer.
public static CharSequence toXML(Object object, int limit, String encodings, int offset, StringBuilder... buffer)
object
- the object to convert.limit
- the encoding limit.encodings
- a list of encodings.offset
- the offset in the buffer (-1 = append).buffer
- an optional result buffer.
public static CharSequence toXML(char[] chars, int start, int count, int limit, String encodings, int offset, StringBuilder... buffer)
chars
- the char array to convert.start
- the offset in the array.count
- the count in the array.limit
- the encoding limit.encodings
- a list of encodings.offset
- the offset in the buffer (-1 = append).buffer
- an optional result buffer.
public static String fromXML(Object object)
object
- the object to convert.
public static String fromXML(Object object, int limit, String exceptions)
object
- the object to convert.limit
- the encoding limit.exceptions
- a list of exceptions.
public static String toName(Object object)
object
- the object to convert.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |