Class CsvParser.DSL

java.lang.Object
org.simpleflatmapper.lightningcsv.CsvParser.AbstractDSL<D>
org.simpleflatmapper.csv.CsvParser.AbstractDSL<CsvParser.DSL>
org.simpleflatmapper.csv.CsvParser.DSL
Enclosing class:
CsvParser

public static final class CsvParser.DSL extends CsvParser.AbstractDSL<CsvParser.DSL>
DSL for csv parsing.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.simpleflatmapper.lightningcsv.CsvParser.AbstractDSL

    org.simpleflatmapper.lightningcsv.CsvParser.AbstractDSL.StringPostProcessing
  • Field Summary

    Fields inherited from class org.simpleflatmapper.lightningcsv.CsvParser.AbstractDSL

    bufferSize, cellConsumerWrapper, escapeChar, limit, maxBufferSize, parallelReader, quoteChar, separatorChar, skip, specialisedCharConsumer, stringPostProcessing, yamlComment
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    DSL()
     
    protected
    DSL(char separatorChar, char quoteChar, char escapeChar, int bufferSize, int skip, int limit, int maxBufferSize, org.simpleflatmapper.lightningcsv.CsvParser.AbstractDSL.StringPostProcessing stringPostProcessing, org.simpleflatmapper.util.Function<? super org.simpleflatmapper.lightningcsv.parser.CellConsumer,? extends org.simpleflatmapper.lightningcsv.parser.CellConsumer> cellConsumerWrapper, boolean yamlComment, boolean parallelReader, boolean specialisedCharConsumer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected CsvParser.DSL
    newDSL(char separatorChar, char quoteChar, char escapeChar, int bufferSize, int skip, int limit, int maxBufferSize, org.simpleflatmapper.lightningcsv.CsvParser.AbstractDSL.StringPostProcessing stringPostProcessing, org.simpleflatmapper.util.Function<? super org.simpleflatmapper.lightningcsv.parser.CellConsumer,? extends org.simpleflatmapper.lightningcsv.parser.CellConsumer> cellConsumerWrapper, boolean yamlComment, boolean parallelReader, boolean specialisedCharConsumer)
     
     
    will parse line starting with # as yaml comment.
    will parse line starting with # as yaml comment.

    Methods inherited from class org.simpleflatmapper.csv.CsvParser.AbstractDSL

    mapTo, mapTo, mapTo, mapTo, mapTo, mapTo, mapTo, mapTo, mapTo, mapTo, mapWith

    Methods inherited from class org.simpleflatmapper.lightningcsv.CsvParser.AbstractDSL

    bufferSize, bufferSize, charBuffer, charBuffer, charBuffer, charBuffer, charConsumer, disableSpecialisedCharConsumer, escape, forEach, forEach, forEach, forEach, getCellTransformer, getTextFormat, getUnescapeCellTransformer, iterator, iterator, iterator, iterator, limit, limit, maxBufferSize, maxBufferSize, parallelReader, parse, parse, parse, parse, quote, quote, reader, reader, reader, reader, reader, rowIterator, rowIterator, rowIterator, rowIterator, rowStream, rowStream, rowStream, rowStream, separator, separator, serialReader, skip, skip, stream, stream, stream, stream, stream

    Methods inherited from class java.lang.Object

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

    • DSL

      protected DSL()
    • DSL

      protected DSL(char separatorChar, char quoteChar, char escapeChar, int bufferSize, int skip, int limit, int maxBufferSize, org.simpleflatmapper.lightningcsv.CsvParser.AbstractDSL.StringPostProcessing stringPostProcessing, org.simpleflatmapper.util.Function<? super org.simpleflatmapper.lightningcsv.parser.CellConsumer,? extends org.simpleflatmapper.lightningcsv.parser.CellConsumer> cellConsumerWrapper, boolean yamlComment, boolean parallelReader, boolean specialisedCharConsumer)
  • Method Details

    • trimSpaces

      public CsvParser.DSL trimSpaces()
    • withYamlComments

      public CsvParser.DSLYamlComment withYamlComments()
      will parse line starting with # as yaml comment. comments line will be ignored unless using the special foreach call.
      Returns:
      this
    • withYamlCommentsAsCell

      public CsvParser.DSLYamlComment withYamlCommentsAsCell()
      will parse line starting with # as yaml comment. comments line will be come as a row of 1 cell.
      Returns:
      this
    • disableUnescaping

      public CsvParser.DSL disableUnescaping()
    • newDSL

      protected CsvParser.DSL newDSL(char separatorChar, char quoteChar, char escapeChar, int bufferSize, int skip, int limit, int maxBufferSize, org.simpleflatmapper.lightningcsv.CsvParser.AbstractDSL.StringPostProcessing stringPostProcessing, org.simpleflatmapper.util.Function<? super org.simpleflatmapper.lightningcsv.parser.CellConsumer,? extends org.simpleflatmapper.lightningcsv.parser.CellConsumer> cellConsumerWrapper, boolean yamlComment, boolean parallelReader, boolean specialisedCharConsumer)
      Specified by:
      newDSL in class org.simpleflatmapper.lightningcsv.CsvParser.AbstractDSL<CsvParser.DSL>