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, init
public boolean willDecode(String s)
Decoder.Text
willDecode
in interface Decoder.Text<Reader>
s
- the string being tested for decodability.public Reader decode(String s) throws DecodeException
Decoder.Text
decode
in interface Decoder.Text<Reader>
s
- string to be decoded.DecodeException
Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.