org.apache.xindice.xml.sax
Class SAXEventGenerator
java.lang.Object
|
+--org.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: 518460 $, $Date: 2007-03-14 23:47:19 -0400 (Wed, 14 Mar 2007) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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)
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
- 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.- 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
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
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
parse
public void parse(String systemId)
throws IOException,
org.xml.sax.SAXException
- Specified by:
parse
in interface org.xml.sax.XMLReader
processContainer
public boolean processContainer(boolean element,
int pos,
int len)
throws IOException,
org.xml.sax.SAXException
start
public boolean start()
throws IOException,
org.xml.sax.SAXException
stop
public void stop()
Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.