public class QuoteEncoder extends Object implements TextDecoder, TextEncoder
Modifier and Type | Field and Description |
---|---|
static char |
ESCAPE_CHARACTER |
Constructor and Description |
---|
QuoteEncoder() |
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 static final char ESCAPE_CHARACTER
public String decode(String encodedText)
TextDecoder
decode
in interface TextDecoder
encodedText
- the encoded textTextEncoder.encode(String)
public String encode(String text)
TextEncoder
encode
in interface TextEncoder
text
- the text with characters that are to be encoded.TextDecoder.decode(String)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.