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