Class FileReader

java.lang.Object
tech.tablesaw.io.FileReader
Direct Known Subclasses:
CsvReader, FixedWidthReader

public abstract class FileReader extends Object
  • Constructor Details

    • FileReader

      public FileReader()
  • Method Details

    • getColumnTypes

      public ColumnType[] getColumnTypes(Reader reader, ReadOptions options, int linesToSkip, com.univocity.parsers.common.AbstractParser<?> parser, String[] columnNames)
      Returns an array containing the inferred columnTypes for the file being read, as calculated by the ColumnType inference logic. These types may not be correct.
    • getColumnNames

      public String[] getColumnNames(ReadOptions options, ReadOptions.ColumnTypeReadOptions columnTypeReadOptions, com.univocity.parsers.common.AbstractParser<?> parser)
      Returns the column names for each column in the source.
    • parseRows

      protected Table parseRows(ReadOptions options, boolean headerOnly, Reader reader, ReadOptions.ColumnTypeReadOptions columnTypeReadOptions, com.univocity.parsers.common.AbstractParser<?> parser)
    • parseRows

      protected Table parseRows(ReadOptions options, boolean headerOnly, Reader reader, ReadOptions.ColumnTypeReadOptions columnTypeReadOptions, com.univocity.parsers.common.AbstractParser<?> parser, int sampleSize)
    • getTypeString

      protected String getTypeString(Table structure)