org.jSyncManager.API.Conduit.Tools

Class MailDBXML


public class MailDBXML
extends DLPRecordXML

This is a synchronization JConduit for ax XML document from the MailDB database. Each element in the record will be a double-quoted String, escaped if necessary. Format of a PalmOS mail record Message Date/time (2 bytes for date, one for hours, and one for minutes) Flags (1 byte) Subject (optional) From (optional) To (optional) CC (optional) BCC (optional) ReplyTo (optional) SentTo (optional) Message Body
See Also:
JSXMLDocument, JSXMLElement, JSXMLDate, DLPRecordXML

Field Summary

static String
RECORDNAME
static String
XMLNAME

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

RECORDNAME, XMLNAME

Constructor Summary

MailDBXML()
Create new JSXMLDocument with default name and MailDB DTD entity.
MailDBXML(InputStreamReader inputfile)
Create new MailDBScanner with InputStreamReader stream input.
MailDBXML(JSXMLDocument document)
Create new JSXMLDocument with given JSXMLDocument.
MailDBXML(MailRecord rec)
Create new JSXMLDocument with given MailRecord.

Method Summary

String
getDTD()
Get the complete DTD for this database type.
MailRecord
insertRecord(MailRecord rec)
Insert MailRecord into XML Document.
void
readDocument(InputStreamReader inputfile)
Read JSXMLDocument through InputStreamReader and parse into XML Document.

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

getDTD, insertRecord, readDocument

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

getDTD, readDocument, readDocument, readDocument, readDocument, setDTD, setDocument, writeDocument

Field Details

RECORDNAME

public static String RECORDNAME

XMLNAME

public static String XMLNAME

Constructor Details

MailDBXML

public MailDBXML()
Create new JSXMLDocument with default name and MailDB DTD entity.

MailDBXML

public MailDBXML(InputStreamReader inputfile)
            throws org.jdom.JDOMException,
                   IOException
Create new MailDBScanner with InputStreamReader stream input.
Parameters:
inputfile - InputStreamReader

MailDBXML

public MailDBXML(JSXMLDocument document)
Create new JSXMLDocument with given JSXMLDocument.
Parameters:
document - The JSXMLDocument to be read and input.

MailDBXML

public MailDBXML(MailRecord rec)
Create new JSXMLDocument with given MailRecord.
Parameters:
rec - MailRecord

Method Details

getDTD

public String getDTD()
Get the complete DTD for this database type.
Overrides:
getDTD in interface DLPRecordXML
Returns:
String containing complete DTD, delimited by System.Properties.line.separator

insertRecord

public MailRecord insertRecord(MailRecord rec)
Insert MailRecord into XML Document.
Parameters:
rec - MailRecord input.
Returns:
Return the MailRecord for further processing.

readDocument

public void readDocument(InputStreamReader inputfile)
            throws org.jdom.JDOMException,
                   IOException
Read JSXMLDocument through InputStreamReader and parse into XML Document.
Overrides:
readDocument in interface JSXMLDocument
Parameters:
inputfile - InputStreamReader input.