org.xbis.eventstore
Class SAXReader

java.lang.Object
  extended byorg.xbis.eventstore.SAXReader
All Implemented Interfaces:
org.xml.sax.XMLReader

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

XML event store adapter for SAX2. This reads a document event store to generate a SAX2 parse event stream.

Version:
0.8
Author:
Dennis M. Sosnoski

Constructor Summary
SAXReader(EventStore es)
          Constructor.
 
Method Summary
 org.xml.sax.ContentHandler getContentHandler()
           
 org.xml.sax.DTDHandler getDTDHandler()
           
 org.xml.sax.EntityResolver getEntityResolver()
           
 org.xml.sax.ErrorHandler getErrorHandler()
           
 boolean getFeature(java.lang.String name)
           
 java.lang.Object getProperty(java.lang.String name)
           
 void parse(org.xml.sax.InputSource input)
           
 void parse(java.lang.String systemId)
           
 void read()
          Read document event stream from store.
protected  void reportCDATA()
          Report CDATA section.
protected  void reportComment()
          Report comment.
protected  void reportProcessingInstruction()
          Report processing instruction.
protected  void reportText()
          Report character data.
 void reset()
          Reset state for processing event store from start.
 void setContentHandler(org.xml.sax.ContentHandler handler)
           
 void setDTDHandler(org.xml.sax.DTDHandler handler)
           
 void setEntityResolver(org.xml.sax.EntityResolver resolver)
           
 void setErrorHandler(org.xml.sax.ErrorHandler handler)
           
 void setFeature(java.lang.String name, boolean value)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXReader

public SAXReader(EventStore es)
Constructor.

Method Detail

reportText

protected void reportText()
                   throws org.xml.sax.SAXException
Report character data.

Throws:
org.xml.sax.SAXException - on error in processing XML data

reportCDATA

protected void reportCDATA()
                    throws org.xml.sax.SAXException
Report CDATA section.

Throws:
org.xml.sax.SAXException - on error in processing XML data

reportProcessingInstruction

protected void reportProcessingInstruction()
                                    throws org.xml.sax.SAXException
Report processing instruction.

Throws:
org.xml.sax.SAXException - on error in processing XML data

reportComment

protected void reportComment()
                      throws org.xml.sax.SAXException
Report comment.

Throws:
org.xml.sax.SAXException - on error in processing XML data

read

public void read()
          throws org.xml.sax.SAXException
Read document event stream from store.

Throws:
org.xml.sax.SAXException - on error in processing XML data

reset

public final void reset()
Reset state for processing event store from start.


getContentHandler

public org.xml.sax.ContentHandler getContentHandler()
Specified by:
getContentHandler in interface org.xml.sax.XMLReader

getDTDHandler

public org.xml.sax.DTDHandler getDTDHandler()
Specified by:
getDTDHandler in interface org.xml.sax.XMLReader

getEntityResolver

public org.xml.sax.EntityResolver getEntityResolver()
Specified by:
getEntityResolver in interface org.xml.sax.XMLReader

getErrorHandler

public org.xml.sax.ErrorHandler getErrorHandler()
Specified by:
getErrorHandler in interface org.xml.sax.XMLReader

getFeature

public boolean getFeature(java.lang.String name)
                   throws org.xml.sax.SAXNotRecognizedException,
                          org.xml.sax.SAXNotSupportedException
Specified by:
getFeature in interface org.xml.sax.XMLReader
Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException

getProperty

public java.lang.Object getProperty(java.lang.String name)
                             throws org.xml.sax.SAXNotRecognizedException,
                                    org.xml.sax.SAXNotSupportedException
Specified by:
getProperty in interface org.xml.sax.XMLReader
Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException

parse

public void parse(org.xml.sax.InputSource input)
           throws org.xml.sax.SAXException
Specified by:
parse in interface org.xml.sax.XMLReader
Throws:
org.xml.sax.SAXException

parse

public void parse(java.lang.String systemId)
           throws org.xml.sax.SAXException
Specified by:
parse in interface org.xml.sax.XMLReader
Throws:
org.xml.sax.SAXException

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler handler)
Specified by:
setContentHandler in interface org.xml.sax.XMLReader

setDTDHandler

public void setDTDHandler(org.xml.sax.DTDHandler handler)
Specified by:
setDTDHandler in interface org.xml.sax.XMLReader

setEntityResolver

public void setEntityResolver(org.xml.sax.EntityResolver resolver)
Specified by:
setEntityResolver in interface org.xml.sax.XMLReader

setErrorHandler

public void setErrorHandler(org.xml.sax.ErrorHandler handler)
Specified by:
setErrorHandler in interface org.xml.sax.XMLReader

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
                throws org.xml.sax.SAXNotRecognizedException,
                       org.xml.sax.SAXNotSupportedException
Specified by:
setFeature in interface org.xml.sax.XMLReader
Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws org.xml.sax.SAXNotRecognizedException,
                        org.xml.sax.SAXNotSupportedException
Specified by:
setProperty in interface org.xml.sax.XMLReader
Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException


Company Web Site

XML Binary Information Set Home