@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 XmlValueEncoder()
public String encode(String text)
encode in interface TextEncodertext - the text with characters that are to be encoded.TextEncoder.encode(java.lang.String)public String decode(String encodedText)
decode in interface TextDecoderencodedText - the encoded textTextDecoder.decode(java.lang.String)Copyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.