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