Class CSVDecoder


  • public class CSVDecoder
    extends Decoder<java.lang.Iterable<java.util.Map<java.lang.String,​java.lang.String>>>
    CSV decoder.
    • Field Summary

      • Fields inherited from class org.httprpc.io.Decoder

        EOF
    • 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>>>
      U
      read​(java.io.Reader reader)
      Reads a value from a character stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CSVDecoder

        public CSVDecoder()
        Constructs a new CSV decoder.
      • CSVDecoder

        public CSVDecoder​(boolean cursor)
        Constructs a new CSV decoder.
        Parameters:
        cursor - true if 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 - true if 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.IOException
        Description copied from class: Decoder
        Reads a value from a character stream.
        Specified by:
        read in class Decoder<java.lang.Iterable<java.util.Map<java.lang.String,​java.lang.String>>>
        Type Parameters:
        U - The decoded value type.
        Parameters:
        reader - The character stream to read from.
        Returns:
        The decoded value.
        Throws:
        java.io.IOException - If an exception occurs.