org.jSyncManager.API.Protocol.Util.StdApps
Class MailDBCSV
java.lang.Object
|
+--org.jSyncManager.API.Protocol.Util.JSCSVDocument
|
+--org.jSyncManager.API.Protocol.Util.DLPRecordCSV
|
+--org.jSyncManager.API.Protocol.Util.StdApps.MailDBCSV
- public class MailDBCSV
- extends DLPRecordCSV
This is a synchronization JConduit for a CSV document from the MailDB database.
Each "cell" in the record will be a double-quoted String, escaped if necessary.
The output CSV document will be headed by a row containing the data type indicators,
and possibly a title name row.
- Version:
- $Revision: 1.6 $
- Author:
- David A. Bartmess <dingodave@edingo.net>
Last modified by: $Author: dingodave $ on $Date: 2003/06/17 00:06:08 $.
- See Also:
JSCSVCell
,
JSCSVDocument
,
DLPRecordCSV
Constructor Summary |
MailDBCSV()
Create new default, empty MailDBCSV |
MailDBCSV(java.io.File document)
Create new MailDBCSV from File. |
MailDBCSV(java.io.InputStreamReader inputfile)
Create new MailDBCSV with InputStreamReader stream input. |
MailDBCSV(MailRecord rec)
Create new MailDBCSV with given MailRecord. |
Method Summary |
void |
insertRecord(MailRecord rec)
Insert record into CSV row |
int |
insertTitles(MailRecord rec)
Insert title row into document |
int |
insertTypes(MailRecord rec)
Insert column types from input MailRecord for CSV conversion and output. |
void |
readDocument(java.io.InputStreamReader inputfile)
Read the InputStreadReader input and parse the contents into a JSCSVDocument document. |
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 |
CSVNAME
public static java.lang.String CSVNAME
- org.w3c.dom.Document document
record
public transient MailRecord record
MailDBCSV
public MailDBCSV()
- Create new default, empty MailDBCSV
MailDBCSV
public MailDBCSV(MailRecord rec)
- Create new MailDBCSV with given MailRecord.
- Parameters:
rec
- MailRecord to be parsed into MailDBCSV instance.
MailDBCSV
public MailDBCSV(java.io.File document)
throws java.io.IOException
- Create new MailDBCSV from File.
- Parameters:
document
- CSV Document file- Throws:
java.io.IOException
- IOException thrown
MailDBCSV
public MailDBCSV(java.io.InputStreamReader inputfile)
throws java.io.IOException
- Create new MailDBCSV with InputStreamReader stream input.
- Parameters:
inputfile
- InputStreamReader input- Throws:
java.io.IOException
- IOException thrown
insertTypes
public int insertTypes(MailRecord rec)
- Insert column types from input MailRecord for CSV conversion and output.
- Parameters:
rec
- MailRecord input- Returns:
- Number of columns in record
insertTitles
public int insertTitles(MailRecord rec)
- Insert title row into document
- Parameters:
rec
- MailRecord- Returns:
- Number of columns in titles
insertRecord
public void insertRecord(MailRecord rec)
- Insert record into CSV row
- Parameters:
rec
- MailRecord
readDocument
public void readDocument(java.io.InputStreamReader inputfile)
throws java.io.IOException
- Read the InputStreadReader input and parse the contents into a JSCSVDocument document.
- Overrides:
readDocument
in class DLPRecordCSV
- Parameters:
inputfile
- InputStreamReader- Throws:
java.io.IOException
- IOException
Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.