public class NoOpTextCoder extends CoderAdapter implements Decoder.Text<String>, Encoder.Text<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 |
---|---|
String |
decode(String s)
Decode the given String into an object of type T.
|
String |
encode(String object)
Encode the given object into a String.
|
boolean |
willDecode(String s)
Answer whether the given String can be decoded into an object of type T.
|
destroy, init
public boolean willDecode(String s)
Decoder.Text
willDecode
in interface Decoder.Text<String>
s
- the string being tested for decodability.public String decode(String s) throws DecodeException
Decoder.Text
decode
in interface Decoder.Text<String>
s
- string to be decoded.DecodeException
public String encode(String object) throws EncodeException
Encoder.Text
encode
in interface Encoder.Text<String>
object
- the object being encoded.EncodeException
Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.