|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.util.XMLTools
Provides XML entity utilities.
This code has been copied from the jakarta commons project from an Apache license. It has been modified to just support XML escaping.
| Field Summary | |
static XMLTools |
XML
The set of entities supported by standard XML. |
| Constructor Summary | |
XMLTools()
|
|
| Method Summary | |
void |
addEntities(java.lang.String[][] entityArray)
|
void |
addEntity(java.lang.String name,
int value)
|
java.lang.String |
entityName(int value)
|
int |
entityValue(java.lang.String name)
|
java.lang.String |
escape(java.lang.String str)
Escapes the characters in a String. |
java.lang.String |
unescape(java.lang.String str)
Unescapes the entities in a String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final XMLTools XML
The set of entities supported by standard XML.
| Constructor Detail |
public XMLTools()
| Method Detail |
public void addEntities(java.lang.String[][] entityArray)
public void addEntity(java.lang.String name,
int value)
public java.lang.String entityName(int value)
public int entityValue(java.lang.String name)
public java.lang.String escape(java.lang.String str)
Escapes the characters in a String.
For example, if you have called addEntity("foo", 0xA1), escape("¡") will return "&foo;"
str - The String to escape.
String.public java.lang.String unescape(java.lang.String str)
Unescapes the entities in a String.
For example, if you have called addEntity("foo", 0xA1), unescape("&foo;") will return "¡"
str - The String to escape.
String.
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||