Package adams.data.io.output
Interface IncrementalSpreadSheetWriter
-
- All Superinterfaces:
Destroyable
,OptionHandler
,SpreadSheetWriter
,Stoppable
,StoppableWithFeedback
- All Known Implementing Classes:
AccessSpreadSheetWriter
,CsvSpreadSheetWriter
,TsvSpreadSheetWriter
public interface IncrementalSpreadSheetWriter extends SpreadSheetWriter
Interface for writers that allow incremental writing.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isIncremental()
Returns whether the writer can write data incrementally.boolean
write(Row content, File file)
Writes the given content to the specified file.boolean
write(Row content, OutputStream stream)
Writes the spreadsheet to the given output stream.boolean
write(Row content, Writer writer)
Writes the spreadsheet to the given writer.boolean
write(Row content, String filename)
Writes the spreadsheet to the given file.-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.data.io.output.SpreadSheetWriter
getCorrespondingReader, getFormatDescription, getFormatExtensions, reset, write, write, write, write
-
Methods inherited from interface adams.core.Stoppable
stopExecution
-
Methods inherited from interface adams.core.StoppableWithFeedback
isStopped
-
-
-
-
Method Detail
-
isIncremental
boolean isIncremental()
Returns whether the writer can write data incrementally.- Returns:
- true if data can be written incrementally
-
write
boolean write(Row content, File file)
Writes the given content to the specified file.- Parameters:
content
- the content to writefile
- the file to write to- Returns:
- true if successfully written
-
write
boolean write(Row content, String filename)
Writes the spreadsheet to the given file.- Parameters:
content
- the spreadsheet to writefilename
- the file to write the spreadsheet to- Returns:
- true if successfully written
-
write
boolean write(Row content, OutputStream stream)
Writes the spreadsheet to the given output stream. The caller must ensure that the stream gets closed.- Parameters:
content
- the spreadsheet to writestream
- the output stream to write the spreadsheet to- Returns:
- true if successfully written
-
-