Class OrderedCsvMapReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.supercsv.io.ICsvMapReader, org.supercsv.io.ICsvReader
    Direct Known Subclasses:
    IterableOrderedCsvMapReader

    public class OrderedCsvMapReader
    extends org.supercsv.io.CsvMapReader
    Extends CsvMapReader but uses LinkedHashMap as the underlying map implementation for predictable iteration order.
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderedCsvMapReader​(java.io.Reader reader, org.supercsv.prefs.CsvPreference preferences)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> read​(java.lang.String... nameMapping)  
      java.util.List<java.lang.String> readNext()
      Read the next row without thinking about nameMappings
      • Methods inherited from class org.supercsv.io.CsvMapReader

        read
      • Methods inherited from class org.supercsv.io.AbstractCsvReader

        close, executeProcessors, get, getColumns, getHeader, getLineNumber, getPreferences, getRowNumber, getUntokenizedRow, length, readRow
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close
      • Methods inherited from interface org.supercsv.io.ICsvReader

        get, getHeader, getLineNumber, getRowNumber, getUntokenizedRow, length
    • Constructor Detail

      • OrderedCsvMapReader

        public OrderedCsvMapReader​(java.io.Reader reader,
                                   org.supercsv.prefs.CsvPreference preferences)
    • Method Detail

      • read

        public java.util.Map<java.lang.String,​java.lang.String> read​(java.lang.String... nameMapping)
                                                                    throws java.io.IOException
        Specified by:
        read in interface org.supercsv.io.ICsvMapReader
        Overrides:
        read in class org.supercsv.io.CsvMapReader
        Throws:
        java.io.IOException
      • readNext

        public java.util.List<java.lang.String> readNext()
                                                  throws java.io.IOException
        Read the next row without thinking about nameMappings
        Returns:
        the next row of data.
        Throws:
        java.io.IOException