Package org.httprpc.io
Class CSVDecoder
- java.lang.Object
-
- org.httprpc.io.Decoder<java.lang.Iterable<java.util.Map<java.lang.String,java.lang.String>>>
-
- org.httprpc.io.CSVDecoder
-
public class CSVDecoder extends Decoder<java.lang.Iterable<java.util.Map<java.lang.String,java.lang.String>>>
CSV decoder.
-
-
Constructor Summary
Constructors Constructor Description CSVDecoder()Constructs a new CSV decoder.CSVDecoder(boolean cursor)Constructs a new CSV decoder.CSVDecoder(boolean cursor, char delimiter)Constructs a new CSV decoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <U extends java.lang.Iterable<java.util.Map<java.lang.String,java.lang.String>>>
Uread(java.io.Reader reader)Reads a value from a character stream.-
Methods inherited from class org.httprpc.io.Decoder
getCharset, read
-
-
-
-
Constructor Detail
-
CSVDecoder
public CSVDecoder()
Constructs a new CSV decoder.
-
CSVDecoder
public CSVDecoder(boolean cursor)
Constructs a new CSV decoder.- Parameters:
cursor-trueif the results should be returned as a scrolling cursor;false, otherwise.
-
CSVDecoder
public CSVDecoder(boolean cursor, char delimiter)Constructs a new CSV decoder.- Parameters:
cursor-trueif the results should be returned as a scrolling cursor;false, otherwise.delimiter- The character to use as a field delimiter.
-
-
Method Detail
-
read
public <U extends java.lang.Iterable<java.util.Map<java.lang.String,java.lang.String>>> U read(java.io.Reader reader) throws java.io.IOExceptionDescription copied from class:DecoderReads a value from a character stream.
-
-