jSyncManager

org.jSyncManager.API.Protocol.Util
Class DLPRecordCSV

java.lang.Object
  |
  +--org.jSyncManager.API.Protocol.Util.JSCSVDocument
        |
        +--org.jSyncManager.API.Protocol.Util.DLPRecordCSV
Direct Known Subclasses:
AddressDBCSV, DateBookDBCSV, ExpenseDBCSV, MailDBCSV, MemoDBCSV, ToDoListDBCSV

public class DLPRecordCSV
extends JSCSVDocument

A container for the CSV representation of the DLPRecord.

Version:
$Revision: 1.11 $
Author:
David A. Bartmess <dingodave@edingo.net>
Last modified by: $Author: dingodave $ on $Date: 2003/06/16 23:37:54 $.
See Also:
JSCSVDocument, DLPRecord, org.w3c.dom.Document, org.w3c.dom.NamedNodeMap

Fields inherited from class org.jSyncManager.API.Protocol.Util.JSCSVDocument
DATATYPE_ROW, DLPRECORD_COLS, headerrows, TITLE_ROW
 
Constructor Summary
DLPRecordCSV()
          Create new DLPRecordCSV with default name.
DLPRecordCSV(DLPRecord rec)
          Create new DLPRecordCSV from given DLPRecord.
DLPRecordCSV(java.io.File document)
          Create new DLPRecordCSV from given java.io.File input.
DLPRecordCSV(java.io.InputStreamReader inputfile)
          Create new DLPRecordCSV from given InputStreamReader stream input.
 
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(java.io.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.Protocol.Util.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, readDoubleArrayCell, readDoubleCell, readFloatArrayCell, readFloatCell, readIntArrayCell, readIntCell, readLongArrayCell, readLongCell, readStringArrayCell, readStringCell, setDocument, setElementAt, setElementAt, setHeaderrows, setReader, setReader, setReader, setSeparator, setShowtitles, writeDataRow, writeDocument, writeDocument
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLPRecordCSV

public DLPRecordCSV()
Create new DLPRecordCSV with default name.

DLPRecordCSV

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

DLPRecordCSV

public DLPRecordCSV(java.io.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.
Throws:
java.io.IOException -  

DLPRecordCSV

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

readDocument

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

readDocument

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

insertRecord

public int insertRecord(DLPRecord rec)

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.

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.

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.