org.jSyncManager.API.Conduit.Tools

Class DLPRecordCSV

Known Direct Subclasses:
AddressDBCSV, DateBookDBCSV, ExpenseDBCSV, MailDBCSV, MemoDBCSV, ToDoListDBCSV

public class DLPRecordCSV
extends JSCSVDocument

A container for the CSV representation of the DLPRecord.
See Also:
JSCSVDocument, DLPRecord, org.w3c.dom.Document, org.w3c.dom.NamedNodeMap

Field Summary

Fields inherited from class org.jSyncManager.API.Conduit.Tools.JSCSVDocument

DATATYPE_ROW, DLPRECORD_COLS, TITLE_ROW

Constructor Summary

DLPRecordCSV()
Create new DLPRecordCSV with default name.
DLPRecordCSV(File document)
Create new DLPRecordCSV from given java.io.File input.
DLPRecordCSV(InputStreamReader inputfile)
Create new DLPRecordCSV from given InputStreamReader stream input.
DLPRecordCSV(DLPRecord rec)
Create new DLPRecordCSV from given DLPRecord.

Method Summary

int
insertRecord(DLPRecord rec)
int
insertTitles(DLPRecord rec)
Insert TITLE_ROW into document from DLPRecordCSX.dlprecordtitles.
int
insertTypes(DLPRecord rec)
Insert DATATYPE_ROW into document from DLPRecordCSX.dlprecordtypes.
void
readDocument(InputStreamReader inputfile)
Read document from an InputStreamReader stream and parse.
void
readDocument(int row)
Read document from the given row number.

Methods inherited from class org.jSyncManager.API.Conduit.Tools.JSCSVDocument

elementAt, escape, escape, escape, escape, escape, escape, escape, escape, escape, escape, escape, escape, escape, getCell, getDocument, getHeaderrows, getReader, getRowNo, getSeparator, getValue, isShowtitles, parse, parse, parse, parse, parseRow, parseTitleRow, parseTypeRow, readBooleanCell, readByteArrayCell, readByteCell, readCalendarCell, readCharArrayCell, readCharCell, readDocument, readDoubleArrayCell, readDoubleCell, readFloatArrayCell, readFloatCell, readIntArrayCell, readIntCell, readLongArrayCell, readLongCell, readStringArrayCell, readStringCell, setDocument, setElementAt, setElementAt, setHeaderrows, setReader, setReader, setReader, setSeparator, setShowtitles, writeDataRow, writeDocument, writeDocument

Constructor Details

DLPRecordCSV

public DLPRecordCSV()
Create new DLPRecordCSV with default name.

DLPRecordCSV

public DLPRecordCSV(File document)
            throws java.io.IOException
Create new DLPRecordCSV from given java.io.File input.
Parameters:
document - java.io.File object to be parsed into element.

DLPRecordCSV

public DLPRecordCSV(InputStreamReader inputfile)
            throws java.io.IOException
Create new DLPRecordCSV from given InputStreamReader stream input.
Parameters:
inputfile - InputStreamReader stream to be parsed into element.

DLPRecordCSV

public DLPRecordCSV(DLPRecord rec)
Create new DLPRecordCSV from given DLPRecord.
Parameters:
rec - DLPRecord to be parsed into element.

Method Details

insertRecord

public int insertRecord(DLPRecord rec)

insertTitles

public int insertTitles(DLPRecord rec)
Insert TITLE_ROW into document from DLPRecordCSX.dlprecordtitles.
Parameters:
rec - DLPRecord to be inserted.
Returns:
int number of columns inserted.

insertTypes

public int insertTypes(DLPRecord rec)
Insert DATATYPE_ROW into document from DLPRecordCSX.dlprecordtypes.
Parameters:
rec - DLPRecord to be inserted.
Returns:
int number of columns inserted.

readDocument

public void readDocument(InputStreamReader inputfile)
            throws java.io.IOException
Read document from an InputStreamReader stream and parse.
Overrides:
readDocument in interface JSCSVDocument
Parameters:
inputfile - InputStreamReader to parse document from.

readDocument

public void readDocument(int row)
Read document from the given row number.
Parameters:
row - Row number to parse into DLPRecord.