|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dtolabs.utils.XmlEncoder
public class XmlEncoder
Provides a basic encode/decode methods to handle characters harmful to XML documents.
Constructor Summary | |
---|---|
XmlEncoder()
|
Method Summary | |
---|---|
static java.lang.String |
decode(java.lang.String s)
Takes input string and replaces all occurrences of the escaped charcter sequences and returns back 'harmful' XML characters. |
static java.lang.String |
encode(java.lang.String s)
Takes input string and replaces all occurrences of the following characters with the escaped counterparts: &, <, >, ', \t, \n, \r, " |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlEncoder()
Method Detail |
---|
public static java.lang.String encode(java.lang.String s)
s
- a String
input value
String
output valuepublic static java.lang.String decode(java.lang.String s)
s
- a String
input value
String
output value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |