Class FixedWidthReadOptions

java.lang.Object
tech.tablesaw.io.ReadOptions
tech.tablesaw.io.fixed.FixedWidthReadOptions

public class FixedWidthReadOptions extends ReadOptions
  • Method Details

    • builder

      public static FixedWidthReadOptions.Builder builder(Source source)
    • builder

      public static FixedWidthReadOptions.Builder builder(File file)
    • builder

      public static FixedWidthReadOptions.Builder builder(String fileName)
    • builder

      public static FixedWidthReadOptions.Builder builder(InputStream stream)
      This method may cause tablesaw to buffer the entire InputStream.

      If you have a large amount of data, you can do one of the following: 1. Use the method taking a File instead of a stream, or 2. Provide the array of column types as an option. If you provide the columnType array, we skip type detection and can avoid reading the entire file

    • builder

      public static FixedWidthReadOptions.Builder builder(Reader reader)
      This method may cause tablesaw to buffer the entire InputStream.

      If you have a large amount of data, you can do one of the following: 1. Use the method taking a File instead of a reader, or 2. Provide the array of column types as an option. If you provide the columnType array, we skip type detection and can avoid reading the entire file

    • columnTypes

      public ColumnType[] columnTypes()
    • columnSpecs

      public com.univocity.parsers.fixed.FixedWidthFields columnSpecs()
    • lineEnding

      public String lineEnding()
    • padding

      public char padding()
    • lookupWildcard

      public char lookupWildcard()
    • skipTrailingCharsUntilNewline

      public boolean skipTrailingCharsUntilNewline()
    • recordEndsOnNewline

      public boolean recordEndsOnNewline()
    • skipInvalidRows

      public boolean skipInvalidRows()
    • maxNumberOfColumns

      public Integer maxNumberOfColumns()