jSyncManager

org.jSyncManager.API.Protocol.Util
Class JSXMLDocument

java.lang.Object
  |
  +--org.jdom.Document
        |
        +--org.jSyncManager.API.Protocol.Util.JSXMLDocument
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
DLPRecordXML

public class JSXMLDocument
extends org.jdom.Document

A container for holding an XML representation of a database. This class parses and holds an XML document for use.

Version:
$Revision: 1.16 $
Author:
David A. Bartmess <dingodave@edingo.net>
Last modified by: $Author: dingodave $ on $Date: 2003/07/09 01:37:37 $.
See Also:
JSXMLElement, DLPRecordXML, Serialized Form

Fields inherited from class org.jdom.Document
content, docType
 
Constructor Summary
JSXMLDocument()
          Create new instance of JSXMLDocument.
JSXMLDocument(java.io.InputStreamReader inputfile)
          Scan through org.jdom.Document document.
JSXMLDocument(java.lang.String name)
          Scan through org.jdom.Document document.
JSXMLDocument(java.net.URL url)
          Scan through org.jdom.Document document.
JSXMLDocument(java.net.URL url, boolean validate)
          Scan through org.jdom.Document document.
 
Method Summary
 java.lang.String getDTD()
          Retrieve the DTD for the current element.
 void readDocument(java.io.InputStreamReader inputfile)
          Read document from InputStreadReader and parse.
 void readDocument(java.io.InputStreamReader inputfile, boolean validate)
          Read document from InputStreadReader and parse.
 void readDocument(java.net.URL url)
          Read document from InputStreadReader and parse.
 void readDocument(java.net.URL url, boolean validate)
          Read document from InputStreadReader and parse.
 void setDocument(org.jdom.Document document)
          Setter for property document.
 void setDTD(java.lang.String dtdname)
          Set the DTD name from a string value, and create the DTD for the current element.
 void writeDocument(java.io.OutputStreamWriter outputfile)
          Write out org.jdom.Document document to the given OutputStreamWriter stream.
 
Methods inherited from class org.jdom.Document
addContent, addContent, clone, detachRootElement, equals, getContent, getContent, getDocType, getRootElement, hashCode, hasRootElement, removeContent, removeContent, setContent, setDocType, setRootElement, toString
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSXMLDocument

public JSXMLDocument()
Create new instance of JSXMLDocument.

JSXMLDocument

public JSXMLDocument(java.lang.String name)
Scan through org.jdom.Document document.
Parameters:
name - New String valuename of element

JSXMLDocument

public JSXMLDocument(java.io.InputStreamReader inputfile)
              throws org.jdom.JDOMException,
                     java.io.IOException
Scan through org.jdom.Document document.
Parameters:
inputfile - InputStreamReader to parse document from.
Throws:
org.jdom.JDOMException -  
java.io.IOException -  

JSXMLDocument

public JSXMLDocument(java.net.URL url)
              throws org.jdom.JDOMException,
                     java.io.IOException
Scan through org.jdom.Document document.
Parameters:
url - URL object to parse document from.
Throws:
org.jdom.JDOMException -  
java.io.IOException -  

JSXMLDocument

public JSXMLDocument(java.net.URL url,
                     boolean validate)
              throws org.jdom.JDOMException,
                     java.io.IOException
Scan through org.jdom.Document document.
Parameters:
url - URL object to parse document from.
Throws:
org.jdom.JDOMException -  
java.io.IOException -  
Method Detail

readDocument

public void readDocument(java.io.InputStreamReader inputfile)
                  throws org.jdom.JDOMException,
                         java.io.IOException
Read document from InputStreadReader and parse.
Parameters:
inputfile - InputStreamReader to parse document from.
Throws:
org.jdom.JDOMException -  
java.io.IOException -  

readDocument

public void readDocument(java.io.InputStreamReader inputfile,
                         boolean validate)
                  throws org.jdom.JDOMException,
                         java.io.IOException
Read document from InputStreadReader and parse.
Parameters:
inputfile - InputStreamReader to parse document from.
Throws:
org.jdom.JDOMException -  
java.io.IOException -  

readDocument

public void readDocument(java.net.URL url)
                  throws org.jdom.JDOMException,
                         java.io.IOException
Read document from InputStreadReader and parse.
Parameters:
inputfile - InputStreamReader to parse document from.
Throws:
org.jdom.JDOMException -  
java.io.IOException -  

readDocument

public void readDocument(java.net.URL url,
                         boolean validate)
                  throws org.jdom.JDOMException,
                         java.io.IOException
Read document from InputStreadReader and parse.
Parameters:
inputfile - InputStreamReader to parse document from.
Throws:
org.jdom.JDOMException -  
java.io.IOException -  

writeDocument

public void writeDocument(java.io.OutputStreamWriter outputfile)
                   throws java.io.IOException
Write out org.jdom.Document document to the given OutputStreamWriter stream.
Parameters:
outputfile - OutputStreamWriter to stream the output to.
Throws:
java.io.IOException -  

setDocument

public void setDocument(org.jdom.Document document)
Setter for property document.
Parameters:
document - New value of property document.

getDTD

public java.lang.String getDTD()
Retrieve the DTD for the current element.
Returns:
String DTD statement.

setDTD

public void setDTD(java.lang.String dtdname)
Set the DTD name from a string value, and create the DTD for the current element.
Parameters:
dtdname - String value of name of the DTD element.

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.