|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectolg.csv.base.AbstractSheetSettings<ODSSettings>
olg.csv.base.ods.ODSSettings
public class ODSSettings
Settings Class for ODS document reading and writing.
ODSWriter,
ODSReader| Field Summary | |
|---|---|
private Formatter<org.odftoolkit.odfdom.doc.table.OdfTableCell> |
cellFormatter
|
static boolean |
DEFAULT_EMPTYINGCELL
Default Emptying cell value. |
static boolean |
DEFAULT_EMPTYINGROW
Default Emptying row value. |
private boolean |
emptyingCell
Emptying cell value. |
private boolean |
emptyingRow
Emptying row value. |
private AbstractParser<List<String>> |
stringParser
|
| Fields inherited from class olg.csv.base.AbstractSheetSettings |
|---|
beginAtColumn, beginAtRow, DEFAULT_SHEETNUM, DEFAULT_WITHHEADERS, endAtColumn, endAtRow, sheetName, sheetNum, withHeaders |
| Constructor Summary | |
|---|---|
ODSSettings()
Purpose default settings. |
|
ODSSettings(int sheetNum,
boolean withHeaders)
Defines settings for Reading process. |
|
ODSSettings(int sheetNum,
Integer beginAtRow,
Integer endAtRow,
String beginAtColumn,
String endAtColumn,
boolean withHeaders)
Defines settings for Reading process. |
|
ODSSettings(String sheetName)
Defines settings for writing process. |
|
ODSSettings(String sheetName,
Integer beginAtRow,
String beginAtColumn)
Defines settings for writing process. |
|
| Method Summary | |
|---|---|
Formatter<org.odftoolkit.odfdom.doc.table.OdfTableCell> |
getCellFormatter()
Returns a cell formatter. |
AbstractParser<List<String>> |
getStringParser()
Returns the String parser. |
boolean |
isEmptyingCell()
Returns the policy on cells rewriting. |
boolean |
isEmptyingRow()
Returns the policy on rows rewriting. |
ODSSettings |
setCellFormatter(Formatter<org.odftoolkit.odfdom.doc.table.OdfTableCell> cellFormatter)
Sets the cell formatter to use. |
ODSSettings |
setEmptyingCell(boolean emptyingCell)
Sets the policy on cells rewriting. |
ODSSettings |
setEmptyingRow(boolean emptyingRow)
Sets the policy on rows rewriting. |
ODSSettings |
setStringParser(AbstractParser<List<String>> stringParser)
Set the String parser. |
| Methods inherited from class olg.csv.base.AbstractSheetSettings |
|---|
getBeginAtColumn, getBeginAtRow, getEndAtColumn, getEndAtRow, getSheetName, getSheetNum, isWithHeaders, setBeginAtColumn, setBeginAtRow, setEndAtColumn, setEndAtRow, setSheetName, setSheetNum, setWithHeaders |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean DEFAULT_EMPTYINGROW
There's two ways to rewrite an ODS file when rows which are passed are non-consecutive :
setEmptyingRow(boolean),
Constant Field Valuespublic static final boolean DEFAULT_EMPTYINGCELL
There's two ways to rewrite an ODS file when cells which are passed on a row are non-consecutive :
setEmptyingCell(boolean),
Constant Field Valuesprivate Formatter<org.odftoolkit.odfdom.doc.table.OdfTableCell> cellFormatter
private AbstractParser<List<String>> stringParser
private boolean emptyingRow
private boolean emptyingCell
| Constructor Detail |
|---|
public ODSSettings()
ODSReader.ODSCellFormatter
public ODSSettings(String sheetName,
Integer beginAtRow,
String beginAtColumn)
sheetName - The name of the Spreadsheet to write on. If the file on which
to write exists and contains a sheet with the specified name,
the writer will write on it otherwise the writer will write on
a new sheet. If the file doesn't exist, the writer create it
and its specified sheet.beginAtRow - specify the first line to begin writing. May be
nullbeginAtColumn - specify the first column where to begin writing. May be
nullODS Cell Formatter for reading process
which use'\n' character as line separator,
String Parser used for writing process. Define how to
interpret a value as a ODS Cell content. For each line returned by
this parser a paragraph will be created into the cell.public ODSSettings(String sheetName)
sheetName - The name of the Spreadsheet to write on. If the file on which
to write exists and contains a sheet with the specified name,
the writer will write on it otherwise the writer will write on
a new sheet. If the file doesn't exist, the writer create it
and its specified sheet.ODS Cell Formatter for reading process
which use'\n' character as line separator,
String Parser used for writing process. Define how to
interpret a value as a ODS Cell content. For each line returned by
this parser a paragraph will be created into the cell.
public ODSSettings(int sheetNum,
Integer beginAtRow,
Integer endAtRow,
String beginAtColumn,
String endAtColumn,
boolean withHeaders)
sheetNum - the table name in the document.First is 0.beginAtRow - specify the first line to begin reading. May be
nullendAtRow - specify the last line to read. May be nullbeginAtColumn - specify the first column where to begin reading. May be
nullendAtColumn - specify the last column where to end traitment. May be
nullwithHeaders - indicate if the table has headers.ODSReader.ODSCellFormatter,
ODSWriter.ODSParser
public ODSSettings(int sheetNum,
boolean withHeaders)
sheetNum - the table name in the document.First is 0.withHeaders - indicate if the table has headers.ODSReader.ODSCellFormatter,
ODSWriter.ODSParser| Method Detail |
|---|
public Formatter<org.odftoolkit.odfdom.doc.table.OdfTableCell> getCellFormatter()
ODSReader.ODSCellFormatterpublic ODSSettings setCellFormatter(Formatter<org.odftoolkit.odfdom.doc.table.OdfTableCell> cellFormatter)
cellFormatter - the formatter
public AbstractParser<List<String>> getStringParser()
ODSWriter uses this parser to create for each returned
line a paragraph in the ODS Cell(where line breaks are not interpreted),
target of the original string. Only for writing
ODSWriter.ODSParserpublic ODSSettings setStringParser(AbstractParser<List<String>> stringParser)
ODSWriter uses this parser to create for each returned
line a paragraph in the ODS Cell target of the original string. Only for
writing
stringParser - the parser.
ODSWriter.ODSParserpublic boolean isEmptyingRow()
setEmptyingRow(boolean)public ODSSettings setEmptyingRow(boolean emptyingRow)
emptyingRow - the value to set.
public boolean isEmptyingCell()
setEmptyingCell(boolean)public ODSSettings setEmptyingCell(boolean emptyingCell)
emptyingCell - the value to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||