|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.util.WcmXMLEncode
Class for encoding a string for XML.
Nested Class Summary | |
static class |
WcmXMLEncode.XmlDecodeException
Exception to indicate an error when decoding text from XML. |
static class |
WcmXMLEncode.XmlEncodeResult
The result of an encode operation. |
Field Summary | |
static int |
DECODEERROR_INVALIDCHAR
Decode error: invalid character |
static int |
DECODEERROR_INVALIDENCODING
Decode error: invalid encoding |
static int |
DECODEERROR_INVALIDLENGTH
Decode error: invalid length |
static int |
ENCODING_BASE64
Use the attribute: encoding="base64" |
static int |
ENCODING_NONE
No attribute needed |
Constructor Summary | |
WcmXMLEncode()
|
Method Summary | |
static java.lang.String |
decodeBase64(java.util.Locale locale,
java.lang.String inStr)
Explicitly decode text from base64. |
static java.lang.String |
decodeBase64(java.lang.String inStr)
Explicitly decode text from base64. |
static java.lang.String |
decodeFromXml(int howEncoded,
java.lang.String inString)
This decodes strings that have been encoded with EncodeForXML. |
static java.lang.String |
decodeFromXml(java.util.Locale locale,
int howEncoded,
java.lang.String inString)
This decodes strings that have been encoded with EncodeForXML. |
static java.lang.String |
encodeBase64(java.lang.String inStr)
Explicitly encode text as base64. |
static java.lang.String |
encodeEntities(java.lang.String inString)
This does only normal encoding of entities. |
static WcmXMLEncode.XmlEncodeResult |
encodeForXml(java.lang.String inString,
WcmXMLEncode.XmlEncodeResult result)
This encodes a string for XML. |
static boolean |
isAllValidXmlChars(java.lang.String inString)
Indicates if all the characters in an input string are valid XML characters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ENCODING_NONE
public static final int ENCODING_BASE64
public static final int DECODEERROR_INVALIDCHAR
public static final int DECODEERROR_INVALIDLENGTH
public static final int DECODEERROR_INVALIDENCODING
Constructor Detail |
public WcmXMLEncode()
Method Detail |
public static WcmXMLEncode.XmlEncodeResult encodeForXml(java.lang.String inString, WcmXMLEncode.XmlEncodeResult result)
inString
- The input string.result
- If not null, is filled on output. Otherwise a new
instance is created.
public static java.lang.String decodeFromXml(java.util.Locale locale, int howEncoded, java.lang.String inString) throws WcmXMLEncode.XmlDecodeException
locale
- the client localehowEncoded
- The type of encoding; can be ENCODING_NONE.inString
- The string to decode.
WcmXMLEncode.XmlDecodeException
public static java.lang.String decodeFromXml(int howEncoded, java.lang.String inString) throws WcmXMLEncode.XmlDecodeException
howEncoded
- The type of encoding; can be ENCODING_NONE.inString
- The string to decode.
WcmXMLEncode.XmlDecodeException
public static java.lang.String encodeEntities(java.lang.String inString)
inString
- The input string.
public static boolean isAllValidXmlChars(java.lang.String inString)
inString
- The string to validate.
public static java.lang.String encodeBase64(java.lang.String inStr)
inStr
- The input string.
public static java.lang.String decodeBase64(java.util.Locale locale, java.lang.String inStr) throws WcmXMLEncode.XmlDecodeException
inStr
- The input string.
WcmXMLEncode.XmlDecodeException
public static java.lang.String decodeBase64(java.lang.String inStr) throws WcmXMLEncode.XmlDecodeException
inStr
- The input string.
WcmXMLEncode.XmlDecodeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |