Package tech.tablesaw.io.html
Class HtmlReadOptions
- java.lang.Object
-
- tech.tablesaw.io.ReadOptions
-
- tech.tablesaw.io.html.HtmlReadOptions
-
public class HtmlReadOptions extends tech.tablesaw.io.ReadOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HtmlReadOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Integer
tableIndex
Which table from the page should be read? Null means no specific index was set.-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HtmlReadOptions(HtmlReadOptions.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HtmlReadOptions.Builder
builder(File file)
static HtmlReadOptions.Builder
builder(InputStream stream)
This method may cause tablesaw to buffer the entire InputStream.static HtmlReadOptions.Builder
builder(Reader reader, String tableName)
This method may cause tablesaw to buffer the entire InputStream.static HtmlReadOptions.Builder
builder(String fileName)
static HtmlReadOptions.Builder
builder(URL url)
static HtmlReadOptions.Builder
builder(tech.tablesaw.io.Source source)
static HtmlReadOptions.Builder
builderFromFile(String fileName)
static HtmlReadOptions.Builder
builderFromString(String contents)
static HtmlReadOptions.Builder
builderFromUrl(String url)
Integer
tableIndex()
-
Methods inherited from class tech.tablesaw.io.ReadOptions
allowDuplicateColumnNames, columnTypeReadOptions, columnTypesToDetect, dateFormatter, dateTimeFormatter, header, ignoreZeroDecimal, locale, minimizeColumnSizes, missingValueIndicators, sample, skipRowsWithInvalidColumnCount, source, tableName, timeFormatter
-
-
-
-
Field Detail
-
tableIndex
protected Integer tableIndex
Which table from the page should be read? Null means no specific index was set.
-
-
Constructor Detail
-
HtmlReadOptions
protected HtmlReadOptions(HtmlReadOptions.Builder builder)
-
-
Method Detail
-
builder
public static HtmlReadOptions.Builder builder(tech.tablesaw.io.Source source)
-
builder
public static HtmlReadOptions.Builder builder(File file)
-
builder
public static HtmlReadOptions.Builder builder(String fileName)
-
builder
public static HtmlReadOptions.Builder builder(URL url) throws IOException
- Throws:
IOException
-
builderFromFile
public static HtmlReadOptions.Builder builderFromFile(String fileName)
-
builderFromString
public static HtmlReadOptions.Builder builderFromString(String contents)
-
builderFromUrl
public static HtmlReadOptions.Builder builderFromUrl(String url) throws IOException
- Throws:
IOException
-
builder
public static HtmlReadOptions.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 HtmlReadOptions.Builder builder(Reader reader, String tableName)
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
-
tableIndex
public Integer tableIndex()
-
-