Package tech.tablesaw.io.fixed
Class FixedWidthReadOptions
- java.lang.Object
-
- tech.tablesaw.io.ReadOptions
-
- tech.tablesaw.io.fixed.FixedWidthReadOptions
-
public class FixedWidthReadOptions extends ReadOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FixedWidthReadOptions.Builder
-
Nested classes/interfaces inherited from class tech.tablesaw.io.ReadOptions
ReadOptions.ColumnTypeReadOptions
-
-
Field Summary
-
Fields inherited from class tech.tablesaw.io.ReadOptions
allowDuplicateColumnNames, columnTypeReadOptions, columnTypesToDetect, dateFormat, dateFormatter, dateTimeFormat, dateTimeFormatter, DEFAULT_IGNORE_ZERO_DECIMAL, DEFAULT_SKIP_ROWS_WITH_INVALID_COLUMN_COUNT, EXTENDED_TYPES, header, ignoreZeroDecimal, locale, maxCharsPerColumn, minimizeColumnSizes, missingValueIndicators, sample, skipRowsWithInvalidColumnCount, source, tableName, timeFormat, timeFormatter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FixedWidthReadOptions.Builder
builder(File file)
static FixedWidthReadOptions.Builder
builder(InputStream stream)
This method may cause tablesaw to buffer the entire InputStream.static FixedWidthReadOptions.Builder
builder(Reader reader)
This method may cause tablesaw to buffer the entire InputStream.static FixedWidthReadOptions.Builder
builder(String fileName)
static FixedWidthReadOptions.Builder
builder(Source source)
com.univocity.parsers.fixed.FixedWidthFields
columnSpecs()
ColumnType[]
columnTypes()
String
lineEnding()
char
lookupWildcard()
Integer
maxNumberOfColumns()
char
padding()
boolean
recordEndsOnNewline()
boolean
skipInvalidRows()
boolean
skipTrailingCharsUntilNewline()
-
Methods inherited from class tech.tablesaw.io.ReadOptions
allowDuplicateColumnNames, columnTypeReadOptions, columnTypesToDetect, dateFormatter, dateTimeFormatter, header, ignoreZeroDecimal, locale, minimizeColumnSizes, missingValueIndicators, sample, skipRowsWithInvalidColumnCount, source, tableName, timeFormatter
-
-
-
-
Method Detail
-
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()
-
-