Xindice API
version 1.2m1

org.apache.xindice.xml.sax
Class SAXEventGenerator

java.lang.Object
  extended byorg.apache.xindice.xml.sax.SAXEventGenerator
All Implemented Interfaces:
org.xml.sax.XMLReader

public final class SAXEventGenerator
extends Object
implements org.xml.sax.XMLReader

SAXEventGenerator

Version:
$Revision: 566464 $, $Date: 2007-08-15 21:21:52 -0400 (Wed, 15 Aug 2007) $

Field Summary
static String SAX_NAMESPACE_PREFIXES_FEATURE
          This is a SAX feature that controls how namespaces are reported in SAX.
static String SAX_NAMESPACES_FEATURE
          This is a SAX feature that controls how namespaces are reported in SAX.
 
Constructor Summary
SAXEventGenerator(SymbolTable symbols, byte[] data)
           
SAXEventGenerator(SymbolTable symbols, byte[] data, int pos, int len)
           
SAXEventGenerator(SymbolTable symbols, org.w3c.dom.Document doc)
           
 
Method Summary
 org.xml.sax.ContentHandler getContentHandler()
           
 org.xml.sax.DTDHandler getDTDHandler()
           
 org.xml.sax.EntityResolver getEntityResolver()
           
 org.xml.sax.ErrorHandler getErrorHandler()
           
 boolean getFeature(String name)
          Return SAX feature setting for the SAX generated by this class.
 Object getProperty(String name)
           
 void parse(org.xml.sax.InputSource input)
           
 void parse(String systemId)
           
 boolean processContainer(boolean element, int pos, int len)
           
 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(String name, boolean value)
          Set SAX feature for the SAX generated by this class.
 void setProperty(String name, Object value)
           
 boolean start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAX_NAMESPACES_FEATURE

public static final String SAX_NAMESPACES_FEATURE
This is a SAX feature that controls how namespaces are reported in SAX. In accordance with the SAX2 specification by default this feature is on.

See Also:
sax.sourceforge.net/?selected=namespaces, Constant Field Values

SAX_NAMESPACE_PREFIXES_FEATURE

public static final String SAX_NAMESPACE_PREFIXES_FEATURE
This is a SAX feature that controls how namespaces are reported in SAX. In accordance with the SAX2 specification by default this feature is off.

See Also:
sax.sourceforge.net/?selected=namespaces, Constant Field Values
Constructor Detail

SAXEventGenerator

public SAXEventGenerator(SymbolTable symbols,
                         byte[] data)

SAXEventGenerator

public SAXEventGenerator(SymbolTable symbols,
                         byte[] data,
                         int pos,
                         int len)

SAXEventGenerator

public SAXEventGenerator(SymbolTable symbols,
                         org.w3c.dom.Document doc)
Method Detail

getFeature

public boolean getFeature(String name)
                   throws org.xml.sax.SAXNotRecognizedException,
                          org.xml.sax.SAXNotSupportedException
Return SAX feature setting for the SAX generated by this class.

Specified by:
getFeature in interface org.xml.sax.XMLReader
Parameters:
name - feature name. Supported features are the standard SAX namespace reporting features as documented in the specification.
Returns:
whether feature is turned on
Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
See Also:
sax.sourceforge.net/?selected=namespaces

setFeature

public void setFeature(String name,
                       boolean value)
                throws org.xml.sax.SAXNotRecognizedException,
                       org.xml.sax.SAXNotSupportedException
Set SAX feature for the SAX generated by this class.

Specified by:
setFeature in interface org.xml.sax.XMLReader
Parameters:
name - feature name. Supported features are the standard SAX namespace reporting features as documented in the specification.
value - specified the status of the feature.
Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
See Also:
sax.sourceforge.net/?selected=namespaces

getProperty

public Object getProperty(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

setProperty

public void setProperty(String name,
                        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

setEntityResolver

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

getEntityResolver

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

setDTDHandler

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

getDTDHandler

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

setContentHandler

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

getContentHandler

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

setErrorHandler

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

getErrorHandler

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

parse

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

parse

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

processContainer

public boolean processContainer(boolean element,
                                int pos,
                                int len)
                         throws IOException,
                                org.xml.sax.SAXException
Throws:
IOException
org.xml.sax.SAXException

start

public boolean start()
              throws IOException,
                     org.xml.sax.SAXException
Throws:
IOException
org.xml.sax.SAXException

stop

public void stop()

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.