@Immutable public class NoOpEncoder extends Object implements TextEncoder, TextDecoder
encoder is optional but the code is
easier to write when there is always an encoder.| Constructor and Description |
|---|
NoOpEncoder() |
| 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.
|
static NoOpEncoder |
getInstance() |
public static final NoOpEncoder getInstance()
public String encode(String text)
encode in interface TextEncodertext - the text with characters that are to be encoded.TextDecoder.decode(String)public String decode(String encodedText)
decode in interface TextDecoderencodedText - the encoded textTextEncoder.encode(String)Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.