public class CharDecoder extends Object implements Decoder.Text<Character>
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>| Constructor and Description |
|---|
CharDecoder() |
| Modifier and Type | Method and Description |
|---|---|
Character |
decode(String s)
Decode the given String into an object of type T.
|
boolean |
willDecode(String s)
Answer whether the given String can be decoded into an object of type T.
|
public Character decode(String s) throws DecodeException
Decoder.Textdecode in interface Decoder.Text<Character>DecodeExceptionpublic boolean willDecode(String s)
Decoder.TextwillDecode in interface Decoder.Text<Character>s - the string being tested for decodabilityCopyright © 2012. All Rights Reserved.