Class SimpleStreamSpreadSheetReader

  • All Implemented Interfaces:
    AdditionalInformationHandler, Destroyable, ErrorProvider, GlobalInfoSupporter, EncodingSupporter, FileFormatHandler, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, Stoppable, StoppableWithFeedback, ChunkedSpreadSheetReader, NoHeaderSpreadSheetReader, SpreadSheetReader, DataRowTypeHandler, SpreadSheetTypeHandler, Serializable

    public class SimpleStreamSpreadSheetReader
    extends AbstractSpreadSheetReader
    implements NoHeaderSpreadSheetReader, ChunkedSpreadSheetReader
    Reads file in simple stream format:
    - one spreadsheet row per line in the output
    - cells are separated by TAB
    - cell format: '<1-based index>:<content-type ID>:<content>'
    NB: tabs, new lines etc in the content get backquoted.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -data-row-type <adams.data.spreadsheet.DataRow> (property: dataRowType)
        The type of row to use for the data.
        default: adams.data.spreadsheet.DenseDataRow
     
    -spreadsheet-type <adams.data.spreadsheet.SpreadSheet> (property: spreadSheetType)
        The type of spreadsheet to use for the data.
        default: adams.data.spreadsheet.DefaultSpreadSheet
     
    -encoding <adams.core.base.BaseCharset> (property: encoding)
        The type of encoding to use when reading using a reader, leave empty for 
        default.
        default: Default
     
    -no-header <boolean> (property: noHeader)
        If enabled, all rows get added as data rows and a dummy header will get 
        inserted.
        default: false
     
    -custom-column-headers <java.lang.String> (property: customColumnHeaders)
        The custom headers to use for the columns instead (comma-separated list);
         ignored if empty.
        default: 
     
    -chunk-size <int> (property: chunkSize)
        The maximum number of rows per chunk; using -1 will read put all data into 
        a single spreadsheet object.
        default: -1
        minimum: -1
     
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form