public class NoOpTextCoder extends CoderAdapter implements Decoder.Text<java.lang.String>, Encoder.Text<java.lang.String>
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T>| Constructor and Description |
|---|
NoOpTextCoder() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decode(java.lang.String s)
Decode the given String into an object of type T.
|
java.lang.String |
encode(java.lang.String object)
Encode the given object into a String.
|
boolean |
willDecode(java.lang.String s)
Answer whether the given String can be decoded into an object of type T.
|
destroy, initpublic boolean willDecode(java.lang.String s)
Decoder.TextwillDecode in interface Decoder.Text<java.lang.String>s - the string being tested for decodability.public java.lang.String decode(java.lang.String s)
throws DecodeException
Decoder.Textdecode in interface Decoder.Text<java.lang.String>s - string to be decoded.DecodeException - If the provided string cannot be decoded to type Tpublic java.lang.String encode(java.lang.String object)
throws EncodeException
Encoder.Textencode in interface Encoder.Text<java.lang.String>object - the object being encoded.EncodeException - The provided object could not be encoded as a stringCopyright © 2012–2025 Oracle Corporation. All rights reserved.