Class UnivocityParserFactory

java.lang.Object
org.aksw.commons.model.csvw.univocity.UnivocityParserFactory

public class UnivocityParserFactory extends Object
A helper class for setting up a univocity parser for an input stream. Concretely captures tsv and csv configuration and also a charset attribute.
  • Field Details

    • isCsv

      protected boolean isCsv
    • csvSettings

      protected com.univocity.parsers.csv.CsvParserSettings csvSettings
    • tsvSettings

      protected com.univocity.parsers.tsv.TsvParserSettings tsvSettings
    • charset

      protected Charset charset
  • Constructor Details

    • UnivocityParserFactory

      public UnivocityParserFactory(boolean isCsv, Charset charset, com.univocity.parsers.csv.CsvParserSettings csvSettings, com.univocity.parsers.tsv.TsvParserSettings tsvSettings)
  • Method Details

    • getCsvSettings

      public com.univocity.parsers.csv.CsvParserSettings getCsvSettings()
    • getTsvSettings

      public com.univocity.parsers.tsv.TsvParserSettings getTsvSettings()
    • createDefault

      public static UnivocityParserFactory createDefault(Boolean skipHeaders)
    • applyDefaults

      public static void applyDefaults(com.univocity.parsers.common.CommonParserSettings<?> settings, Boolean skipHeaders)
    • configure

      public UnivocityParserFactory configure(UnivocityCsvwConf conf)
    • newInputStreamReader

      public InputStreamReader newInputStreamReader(InputStream in)
    • newParser

      public com.univocity.parsers.common.AbstractParser<?> newParser()