net.sourceforge.jdbcimporter
Interface BinaryDelimiterParser

All Known Implementing Classes:
BinaryDelimiterParserDelegate

public interface BinaryDelimiterParser

The BinaryDelimiterParser interface defines a set of methods used to parse a binary file into a set of rows to be added to the database.

Version:
0.74
Author:
Chris Nagy

Method Summary
 java.lang.Object getNextRow()
          Returns the next row to be imported as an Object.
 java.lang.String getRowAsString(java.lang.Object row)
          Returns the String representation of the next row.
 ColumnValue[] getValues(java.lang.Object row)
          Returns the column values for the row specified.
 void setInputStream(java.io.InputStream in)
          Sets the input source for the parser.
 

Method Detail

setInputStream

public void setInputStream(java.io.InputStream in)
Sets the input source for the parser.


getNextRow

public java.lang.Object getNextRow()
                            throws java.io.IOException
Returns the next row to be imported as an Object.

Returns:
the next row to import
Throws:
java.io.IOException - if an error occurs while retrieving the next row

getValues

public ColumnValue[] getValues(java.lang.Object row)
                        throws MalformedDataException
Returns the column values for the row specified.

Returns:
the column values
Throws:
MalformedDataException - if the row is not formatted properly

getRowAsString

public java.lang.String getRowAsString(java.lang.Object row)
Returns the String representation of the next row. The String will be used if the row is written to a log file.

Parameters:
row - the row
Returns:
The String representing the row