public static class Spreadsheet.Info
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
firstCellPresent
If the first cell (line 0, column 0) has
a header, label or value on it.
|
private java.lang.Boolean |
headerOnFirstLine
If there are headers on the first line
|
private java.lang.Boolean |
labelsOnFirstCol
If there are labels on the first column
|
java.lang.String |
separator
Cell separator char
|
Constructor and Description |
---|
Info()
Constructor that does nothing
|
Info(boolean labelsOnFirstCol,
boolean headerOnFirstLine,
boolean firstCellPresent,
java.lang.String sep) |
Info(java.io.File tableFile)
R-Peridot tries to guess the Spreadsheet.Info of a spreadsheet.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allInfoSet() |
boolean |
getFirstCellPresent() |
boolean |
getHeaderOnFirstLine() |
boolean |
getLabelsOnFirstCol() |
static java.lang.String |
guessLineSeparator(java.io.File tableFile) |
void |
setFirstCellPresent(boolean newValue) |
void |
setHeaderOnFirstLine(boolean newValue) |
void |
setLabelsOnFirstCol(boolean newValue) |
public java.lang.String separator
private java.lang.Boolean labelsOnFirstCol
private java.lang.Boolean headerOnFirstLine
private java.lang.Boolean firstCellPresent
public Info(java.io.File tableFile) throws java.io.IOException
tableFile
- The .csv or .tsv file to be analyzed.java.io.IOException
- If failed to read the table file.public Info(boolean labelsOnFirstCol, boolean headerOnFirstLine, boolean firstCellPresent, java.lang.String sep)
labelsOnFirstCol
- If there are labels on the first columnheaderOnFirstLine
- If there are headers on the first linefirstCellPresent
- If the first cell (line 0, column 0) has
a header, label or value on it.sep
- Cell separator.public Info()
public static java.lang.String guessLineSeparator(java.io.File tableFile)
public boolean allInfoSet()
public boolean getFirstCellPresent()
public boolean getLabelsOnFirstCol()
public boolean getHeaderOnFirstLine()
public void setFirstCellPresent(boolean newValue)
public void setLabelsOnFirstCol(boolean newValue)
public void setHeaderOnFirstLine(boolean newValue)