Jeospace API

org.jeospace.xml
Class XMLReaderAdapter

java.lang.Object
  extended byorg.jeospace.xml.XMLReaderAdapter
All Implemented Interfaces:
org.xml.sax.XMLReader
Direct Known Subclasses:
JPLCometElementReader, JPLMinorPlanetElementReader, MPCCometElementReader, MPCMinorPlanetElementReader, Sky2KReader, TLEReader

public class XMLReaderAdapter
extends java.lang.Object
implements org.xml.sax.XMLReader

Trivial Implementation of an XMLReader

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton

Constructor Summary
XMLReaderAdapter()
           
 
Method Summary
 org.xml.sax.ContentHandler getContentHandler()
          Return the current content handler.
 org.xml.sax.DTDHandler getDTDHandler()
          Return the current DTD handler.
 org.xml.sax.EntityResolver getEntityResolver()
          Return the current entity resolver.
 org.xml.sax.ErrorHandler getErrorHandler()
          Return the current error handler.
 boolean getFeature(java.lang.String name)
          Look up the value of a feature.
 java.lang.Object getProperty(java.lang.String name)
          Look up the value of a property.
 void parse(org.xml.sax.InputSource input)
          Parse a document from an InputSource.
 void parse(java.lang.String systemID)
          Parse a document from a system identifier (URI).
 void setContentHandler(org.xml.sax.ContentHandler handler)
          Allow an application to register a content event handler.
 void setDTDHandler(org.xml.sax.DTDHandler handler)
          Allow an application to register a DTD event handler.
 void setEntityResolver(org.xml.sax.EntityResolver resolver)
          Allow an application to register an entity resolver.
 void setErrorHandler(org.xml.sax.ErrorHandler handler)
          Allow an application to register an error event handler.
 void setFeature(java.lang.String name, boolean value)
          Set the state of a feature.
 void setProperty(java.lang.String name, java.lang.Object value)
          Set the value of a property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLReaderAdapter

public XMLReaderAdapter()
Method Detail

parse

public void parse(org.xml.sax.InputSource input)
           throws java.io.IOException,
                  org.xml.sax.SAXException
Parse a document from an InputSource.

Specified by:
parse in interface org.xml.sax.XMLReader
Throws:
java.io.IOException
org.xml.sax.SAXException

parse

public void parse(java.lang.String systemID)
           throws java.io.IOException,
                  org.xml.sax.SAXException
Parse a document from a system identifier (URI).

Specified by:
parse in interface org.xml.sax.XMLReader
Throws:
java.io.IOException
org.xml.sax.SAXException

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler handler)
Allow an application to register a content event handler.

Specified by:
setContentHandler in interface org.xml.sax.XMLReader

getContentHandler

public org.xml.sax.ContentHandler getContentHandler()
Return the current content handler.

Specified by:
getContentHandler in interface org.xml.sax.XMLReader

setErrorHandler

public void setErrorHandler(org.xml.sax.ErrorHandler handler)
Allow an application to register an error event handler.

Specified by:
setErrorHandler in interface org.xml.sax.XMLReader

getErrorHandler

public org.xml.sax.ErrorHandler getErrorHandler()
Return the current error handler.

Specified by:
getErrorHandler in interface org.xml.sax.XMLReader

setDTDHandler

public void setDTDHandler(org.xml.sax.DTDHandler handler)
Allow an application to register a DTD event handler.

Specified by:
setDTDHandler in interface org.xml.sax.XMLReader

getDTDHandler

public org.xml.sax.DTDHandler getDTDHandler()
Return the current DTD handler.

Specified by:
getDTDHandler in interface org.xml.sax.XMLReader

setEntityResolver

public void setEntityResolver(org.xml.sax.EntityResolver resolver)
Allow an application to register an entity resolver.

Specified by:
setEntityResolver in interface org.xml.sax.XMLReader

getEntityResolver

public org.xml.sax.EntityResolver getEntityResolver()
Return the current entity resolver.

Specified by:
getEntityResolver in interface org.xml.sax.XMLReader

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Set the value of a property.

Specified by:
setProperty in interface org.xml.sax.XMLReader

getProperty

public java.lang.Object getProperty(java.lang.String name)
Look up the value of a property.

Specified by:
getProperty in interface org.xml.sax.XMLReader

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
Set the state of a feature.

Specified by:
setFeature in interface org.xml.sax.XMLReader

getFeature

public boolean getFeature(java.lang.String name)
Look up the value of a feature.

Specified by:
getFeature in interface org.xml.sax.XMLReader

Jeospace API

Copyright © 2006 - jeospace.org