Package org.httprpc.io
Class TextDecoder
- java.lang.Object
-
- org.httprpc.io.Decoder<java.lang.CharSequence>
-
- org.httprpc.io.TextDecoder
-
public class TextDecoder extends Decoder<java.lang.CharSequence>
Text decoder.
-
-
Constructor Summary
Constructors Constructor Description TextDecoder()Constructs a new text decoder.TextDecoder(java.nio.charset.Charset charset)Constructs a new text decoder.TextDecoder(java.nio.charset.Charset charset, boolean builder)Constructs a new text decoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <U extends java.lang.CharSequence>
Uread(java.io.Reader reader)Reads a value from a character stream.-
Methods inherited from class org.httprpc.io.Decoder
getCharset, read
-
-
-
-
Constructor Detail
-
TextDecoder
public TextDecoder()
Constructs a new text decoder.
-
TextDecoder
public TextDecoder(java.nio.charset.Charset charset)
Constructs a new text decoder.- Parameters:
charset- The character set to use when decoding the text.
-
TextDecoder
public TextDecoder(java.nio.charset.Charset charset, boolean builder)Constructs a new text decoder.- Parameters:
charset- The character set to use when decoding the text.builder-trueif the result should be returned as a mutable builder;false, otherwise.
-
-
Method Detail
-
read
public <U extends java.lang.CharSequence> U read(java.io.Reader reader) throws java.io.IOExceptionDescription copied from class:DecoderReads a value from a character stream.
-
-