public class ReaderDecoder extends CoderAdapter implements Decoder.Text<Reader>
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>| Constructor and Description |
|---|
ReaderDecoder() |
| Modifier and Type | Method and Description |
|---|---|
Reader |
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.
|
destroy, initpublic boolean willDecode(String s)
Decoder.TextwillDecode in interface Decoder.Text<Reader>s - the string being tested for decodability.public Reader decode(String s) throws DecodeException
Decoder.Textdecode in interface Decoder.Text<Reader>s - string to be decoded.DecodeExceptionCopyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.