@Immutable public class XmlValueEncoder extends Object implements TextEncoder, TextDecoder
Raw (Unencoded) Character |
Translated (Encoded) Entity |
---|---|
& | & |
< | < |
> | > |
" | " |
' | ' |
All Others | No Translation |
Constructor and Description |
---|
XmlValueEncoder() |
Modifier and Type | Method and Description |
---|---|
String |
decode(String encodedText)
Return the decoded version of an encoded string
|
String |
encode(String text)
Returns the encoded version of a string.
|
public String encode(String text)
encode
in interface TextEncoder
text
- the text with characters that are to be encoded.TextEncoder.encode(java.lang.String)
public String decode(String encodedText)
decode
in interface TextDecoder
encodedText
- the encoded textTextDecoder.decode(java.lang.String)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.