org.jSyncManager.API.Conduit.Tools
Class MailDBXML
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
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.
|
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.
|
RECORDNAME
public static String RECORDNAME
XMLNAME
public static String XMLNAME
MailDBXML
public MailDBXML()
Create new JSXMLDocument with default name and MailDB DTD entity.
MailDBXML
public MailDBXML(InputStreamReader inputfile)
throws org.jdom.JDOMException,
IOExceptionCreate new MailDBScanner with InputStreamReader stream input.
inputfile - InputStreamReader
MailDBXML
public MailDBXML(JSXMLDocument document)
Create new JSXMLDocument with given JSXMLDocument.
document - The JSXMLDocument to be read and input.
MailDBXML
public MailDBXML(MailRecord rec)
Create new JSXMLDocument with given MailRecord.
getDTD
public String getDTD()
Get the complete DTD for this database type.
- getDTD in interface DLPRecordXML
- String containing complete DTD, delimited by System.Properties.line.separator
insertRecord
public MailRecord insertRecord(MailRecord rec)
Insert MailRecord into XML Document.
- Return the MailRecord for further processing.
readDocument
public void readDocument(InputStreamReader inputfile)
throws org.jdom.JDOMException,
IOExceptionRead JSXMLDocument through InputStreamReader and parse into XML Document.
- readDocument in interface JSXMLDocument
inputfile - InputStreamReader input.