org.jSyncManager.API.Conduit.Tools
Class MailDBCSV
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.
MailDBCSV()- Create new default, empty MailDBCSV
|
MailDBCSV(File document)- Create new MailDBCSV from File.
|
MailDBCSV(InputStreamReader inputfile)- Create new MailDBCSV with InputStreamReader stream input.
|
MailDBCSV(MailRecord rec)- Create new MailDBCSV with given MailRecord.
|
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 |
CSVNAME
public static String CSVNAME
org.w3c.dom.Document document
MailDBCSV
public MailDBCSV()
Create new default, empty MailDBCSV
MailDBCSV
public MailDBCSV(File document)
throws java.io.IOExceptionCreate new MailDBCSV from File.
document - CSV Document file
MailDBCSV
public MailDBCSV(InputStreamReader inputfile)
throws java.io.IOExceptionCreate new MailDBCSV with InputStreamReader stream input.
inputfile - InputStreamReader input
MailDBCSV
public MailDBCSV(MailRecord rec)
Create new MailDBCSV with given MailRecord.
rec - MailRecord to be parsed into MailDBCSV instance.
insertRecord
public void insertRecord(MailRecord rec)
Insert record into CSV row
insertTitles
public int insertTitles(MailRecord rec)
Insert title row into document
- Number of columns in titles
insertTypes
public int insertTypes(MailRecord rec)
Insert column types from input MailRecord for CSV conversion and output.
- Number of columns in record
readDocument
public void readDocument(InputStreamReader inputfile)
throws java.io.IOExceptionRead the InputStreadReader input and parse the contents into a JSCSVDocument document.
- readDocument in interface DLPRecordCSV
inputfile - InputStreamReader