Tabnine Logo
CsvMapReader.getColumns
Code IndexAdd Tabnine to your IDE (free)

How to use
getColumns
method
in
org.supercsv.io.CsvMapReader

Best Java code snippets using org.supercsv.io.CsvMapReader.getColumns (Showing top 2 results out of 315)

origin: net.sf.supercsv/super-csv

/**
 * {@inheritDoc}
 */
public Map<String, String> read(final String... nameMapping) throws IOException {
  
  if( nameMapping == null ) {
    throw new NullPointerException("nameMapping should not be null");
  }
  
  if( readRow() ) {
    final Map<String, String> destination = new HashMap<String, String>();
    Util.filterListToMap(destination, nameMapping, getColumns());
    return destination;
  }
  
  return null; // EOF
}

origin: net.sf.supercsv/super-csv

  /**
   * {@inheritDoc}
   */
  public Map<String, Object> read(final String[] nameMapping, final CellProcessor[] processors) throws IOException {
    
    if( nameMapping == null ) {
      throw new NullPointerException("nameMapping should not be null");
    } else if( processors == null ) {
      throw new NullPointerException("processors should not be null");
    }
    
    if( readRow() ) {
      // process the columns
      final List<Object> processedColumns = executeProcessors(new ArrayList<Object>(getColumns().size()),
        processors);
      
      // convert the List to a Map
      final Map<String, Object> destination = new HashMap<String, Object>(processedColumns.size());
      Util.filterListToMap((Map<String, Object>) destination, nameMapping, (List<Object>) processedColumns);
      return destination;
    }
    
    return null; // EOF
  }
}
org.supercsv.ioCsvMapReadergetColumns

Popular methods of CsvMapReader

  • <init>
    Constructs a new CsvMapReader with the supplied (custom) Tokenizer and CSV preferences. The tokenize
  • read
  • getHeader
  • close
  • executeProcessors
  • readRow

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now