DexNet 4.7.0
Public Member Functions
com::sparsity::dex::io::RowReader Class Reference

RowReader interface. More...

Inheritance diagram for com::sparsity::dex::io::RowReader:
Inheritance graph

List of all members.

Public Member Functions

void Close () throws System.IO.IOException
 Closes the reader.
int GetRow () throws System.IO.IOException
 The row number for the current row.
bool Read (com.sparsity.dex.gdb.StringList row) throws System.IO.IOException
 Reads the next row as a string array.
bool Reset () throws System.IO.IOException
 Moves the reader to the beginning.

Detailed Description

RowReader interface.

Common interface for those readers which get the data as an string array.

It works as follows: perform as many read operations as necessary and call close once at the end. Once close is called no more read operations can be executed.

Author:
Sparsity Technologies http://www.sparsity-technologies.com

Member Function Documentation

void com::sparsity::dex::io::RowReader::Close ( ) throws System.IO.IOException

Closes the reader.

Exceptions:
System.IO.IOExceptionIf the close fails.

Reimplemented in com::sparsity::dex::io::CSVReader.

int com::sparsity::dex::io::RowReader::GetRow ( ) throws System.IO.IOException

The row number for the current row.

Returns:
The current row number; 0 if there is no current row.
Exceptions:
System.IO.IOExceptionIf it fails.

Reimplemented in com::sparsity::dex::io::CSVReader.

bool com::sparsity::dex::io::RowReader::Read ( com.sparsity.dex.gdb.StringList  row) throws System.IO.IOException

Reads the next row as a string array.

Parameters:
row[out] A string list with each comma-separated element as a separate entry.
Returns:
Returns true if a row had been read or false otherwise.
Exceptions:
System.IO.IOExceptionIf bad things happen during the read.

Reimplemented in com::sparsity::dex::io::CSVReader.

bool com::sparsity::dex::io::RowReader::Reset ( ) throws System.IO.IOException

Moves the reader to the beginning.

Restarts the reader.

Returns:
true if the reader can be restarted, false otherwise.
Exceptions:
System.IO.IOExceptionIf bad things happen during the restart.

Reimplemented in com::sparsity::dex::io::CSVReader.