gov.sns.xal.smf.parser
Class XmlDataSource

java.lang.Object
  |
  +--gov.sns.xal.smf.parser.XmlDataSource

Deprecated. This class has been deprecated and has been replaced by XMLDataManager.

public class XmlDataSource
extends java.lang.Object

XmlDataSource has static methods for reading an accelerator from an XML file and for writing an accelerator to various XML outputs.


Nested Class Summary
static class XmlDataSource.XmlDocumentCreateException
          Deprecated.  
 
Constructor Summary
XmlDataSource()
          Deprecated. Creates new XmlDataSource
 
Method Summary
static java.lang.String acceleratorAsString(Accelerator accelerator)
          Deprecated. write an accelerator to an XML string
static org.w3c.dom.Document newDocument(Accelerator accelerator)
          Deprecated. get a new XML document representation of the accelerator
static XmlDataAdaptor newDocumentAdaptor(java.lang.String docTag, java.lang.String dtdURI)
          Deprecated.  
static Accelerator parseUrlAt(java.lang.String urlPath)
          Deprecated. read an accelerator from a url path
static Accelerator parseUrlAt(java.lang.String urlPath, boolean isValidating)
          Deprecated. read an accelerator from a url path with a DTD validation flag
static void print(org.w3c.dom.Document document)
          Deprecated. Just for diagnostic purposes
static void updateAccelerator(Accelerator accelerator, java.lang.String urlPath)
          Deprecated. update the accelerator with data from the url path
static void updateAccelerator(Accelerator accelerator, java.lang.String urlPath, boolean isValidating)
          Deprecated. update the accelerator with data from the url path with a DTD validation flag
static void writeAccelerator(Accelerator accelerator, java.io.Writer writer)
          Deprecated. write the accelerator as XML to the specified writer
static void writeAcceleratorAt(Accelerator accelerator, java.lang.String urlPath)
          Deprecated. Write the accelerator as XML to the specified URL path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDataSource

public XmlDataSource()
Deprecated. 
Creates new XmlDataSource

Method Detail

parseUrlAt

public static Accelerator parseUrlAt(java.lang.String urlPath)
                              throws java.lang.Exception
Deprecated. 
read an accelerator from a url path

java.lang.Exception

parseUrlAt

public static Accelerator parseUrlAt(java.lang.String urlPath,
                                     boolean isValidating)
                              throws XmlDataAdaptor.ParseException
Deprecated. 
read an accelerator from a url path with a DTD validation flag

XmlDataAdaptor.ParseException

updateAccelerator

public static void updateAccelerator(Accelerator accelerator,
                                     java.lang.String urlPath)
                              throws java.lang.Exception
Deprecated. 
update the accelerator with data from the url path

java.lang.Exception

updateAccelerator

public static void updateAccelerator(Accelerator accelerator,
                                     java.lang.String urlPath,
                                     boolean isValidating)
                              throws XmlDataAdaptor.ParseException
Deprecated. 
update the accelerator with data from the url path with a DTD validation flag

XmlDataAdaptor.ParseException

acceleratorAsString

public static java.lang.String acceleratorAsString(Accelerator accelerator)
                                            throws java.lang.Exception
Deprecated. 
write an accelerator to an XML string

java.lang.Exception

writeAcceleratorAt

public static void writeAcceleratorAt(Accelerator accelerator,
                                      java.lang.String urlPath)
                               throws XmlDataAdaptor.WriteException,
                                      XmlDataAdaptor.CreationException
Deprecated. 
Write the accelerator as XML to the specified URL path

XmlDataAdaptor.WriteException
XmlDataAdaptor.CreationException

writeAccelerator

public static void writeAccelerator(Accelerator accelerator,
                                    java.io.Writer writer)
                             throws XmlDataAdaptor.CreationException
Deprecated. 
write the accelerator as XML to the specified writer

XmlDataAdaptor.CreationException

newDocument

public static org.w3c.dom.Document newDocument(Accelerator accelerator)
                                        throws XmlDataAdaptor.CreationException
Deprecated. 
get a new XML document representation of the accelerator

XmlDataAdaptor.CreationException

newDocumentAdaptor

public static XmlDataAdaptor newDocumentAdaptor(java.lang.String docTag,
                                                java.lang.String dtdURI)
Deprecated. 

print

public static void print(org.w3c.dom.Document document)
Deprecated. 
Just for diagnostic purposes