org.jSyncManager.API.Conduit.Tools
Class MemoDBXML
This is a synchronization JConduit for ax XML document from the MemoDB database.
Each element in the record will be a double-quoted String, escaped if necessary.
MemoDBXML()- Create new JSXMLDocument with default name and MemoDB DTD entity.
|
MemoDBXML(InputStreamReader inputfile)- Create new MemoDBScanner with InputStreamReader stream input.
|
MemoDBXML(MemoRecord rec)- Create new JSXMLDocument with given MemoRecord.
|
MemoDBXML(org.jdom.Document document)- Create new JSXMLDocument with given JSXMLDocument.
|
String | getDTD()- Get the complete DTD for this database type.
|
MemoRecord | insertRecord(MemoRecord rec)- Insert MemoRecord 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
org.jdom.Document document
MemoDBXML
public MemoDBXML()
Create new JSXMLDocument with default name and MemoDB DTD entity.
MemoDBXML
public MemoDBXML(InputStreamReader inputfile)
throws org.jdom.JDOMException,
IOExceptionCreate new MemoDBScanner with InputStreamReader stream input.
inputfile - InputStreamReader
MemoDBXML
public MemoDBXML(MemoRecord rec)
Create new JSXMLDocument with given MemoRecord.
MemoDBXML
public MemoDBXML(org.jdom.Document document)
Create new JSXMLDocument with given JSXMLDocument.
document - The JSXMLDocument to be read and input.
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 MemoRecord insertRecord(MemoRecord rec)
Insert MemoRecord into XML Document.
- Return the MemoRecord 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.