org.apache.camel.component.stax
Class StaxStreamXMLReader

java.lang.Object
  extended by org.apache.camel.component.stax.StaxStreamXMLReader
All Implemented Interfaces:
XMLReader

public class StaxStreamXMLReader
extends Object
implements XMLReader

class extracted from spring 3.0.6.RELEASE.


Method Summary
protected  void endPrefixMapping(String prefix)
          Ends the prefix mapping for the given prefix.
 ContentHandler getContentHandler()
           
 DTDHandler getDTDHandler()
           
 EntityResolver getEntityResolver()
           
 ErrorHandler getErrorHandler()
           
 boolean getFeature(String name)
           
protected  LexicalHandler getLexicalHandler()
           
 Object getProperty(String name)
          Throws a SAXNotRecognizedException exception when the given property does not signify a lexical handler.
protected  boolean hasNamespacePrefixesFeature()
          Indicates whether the SAX feature http://xml.org/sax/features/namespaces-prefixes is turned on.
protected  boolean hasNamespacesFeature()
          Indicates whether the SAX feature http://xml.org/sax/features/namespaces is turned on.
 void parse(InputSource ignored)
          Parse the StAX XML reader passed at construction-time.
 void parse(String ignored)
          Parse the StAX XML reader passed at construction-time.
protected  void parseInternal()
           
 void setContentHandler(ContentHandler contentHandler)
           
 void setDTDHandler(DTDHandler dtdHandler)
           
 void setEntityResolver(EntityResolver entityResolver)
           
 void setErrorHandler(ErrorHandler errorHandler)
           
 void setFeature(String name, boolean value)
           
 void setProperty(String name, Object value)
          Throws a SAXNotRecognizedException exception when the given property does not signify a lexical handler.
protected  void setStandalone(boolean standalone)
           
protected  void startPrefixMapping(String prefix, String namespace)
          Starts the prefix mapping for the given prefix.
protected  String toQualifiedName(QName qName)
          Convert a QName to a qualified name, as used by DOM and SAX.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseInternal

protected void parseInternal()
                      throws SAXException,
                             XMLStreamException
Throws:
SAXException
XMLStreamException

getFeature

public boolean getFeature(String name)
                   throws SAXNotRecognizedException,
                          SAXNotSupportedException
Specified by:
getFeature in interface XMLReader
Throws:
SAXNotRecognizedException
SAXNotSupportedException

setFeature

public void setFeature(String name,
                       boolean value)
                throws SAXNotRecognizedException,
                       SAXNotSupportedException
Specified by:
setFeature in interface XMLReader
Throws:
SAXNotRecognizedException
SAXNotSupportedException

setStandalone

protected void setStandalone(boolean standalone)

hasNamespacesFeature

protected boolean hasNamespacesFeature()
Indicates whether the SAX feature http://xml.org/sax/features/namespaces is turned on.


hasNamespacePrefixesFeature

protected boolean hasNamespacePrefixesFeature()
Indicates whether the SAX feature http://xml.org/sax/features/namespaces-prefixes is turned on.


toQualifiedName

protected String toQualifiedName(QName qName)
Convert a QName to a qualified name, as used by DOM and SAX. The returned string has a format of prefix:localName if the prefix is set, or just localName if not.

Parameters:
qName - the QName
Returns:
the qualified name

parse

public final void parse(InputSource ignored)
                 throws SAXException
Parse the StAX XML reader passed at construction-time.

NOTE:: The given InputSource is not read, but ignored.

Specified by:
parse in interface XMLReader
Parameters:
ignored - is ignored
Throws:
SAXException - a SAX exception, possibly wrapping a XMLStreamException

parse

public final void parse(String ignored)
                 throws SAXException
Parse the StAX XML reader passed at construction-time.

NOTE:: The given system identifier is not read, but ignored.

Specified by:
parse in interface XMLReader
Parameters:
ignored - is ignored
Throws:
SAXException - A SAX exception, possibly wrapping a XMLStreamException

startPrefixMapping

protected void startPrefixMapping(String prefix,
                                  String namespace)
                           throws SAXException
Starts the prefix mapping for the given prefix.

Throws:
SAXException
See Also:
ContentHandler.startPrefixMapping(String, String)

endPrefixMapping

protected void endPrefixMapping(String prefix)
                         throws SAXException
Ends the prefix mapping for the given prefix.

Throws:
SAXException
See Also:
ContentHandler.endPrefixMapping(String)

getContentHandler

public ContentHandler getContentHandler()
Specified by:
getContentHandler in interface XMLReader

setContentHandler

public void setContentHandler(ContentHandler contentHandler)
Specified by:
setContentHandler in interface XMLReader

setDTDHandler

public void setDTDHandler(DTDHandler dtdHandler)
Specified by:
setDTDHandler in interface XMLReader

getDTDHandler

public DTDHandler getDTDHandler()
Specified by:
getDTDHandler in interface XMLReader

getEntityResolver

public EntityResolver getEntityResolver()
Specified by:
getEntityResolver in interface XMLReader

setEntityResolver

public void setEntityResolver(EntityResolver entityResolver)
Specified by:
setEntityResolver in interface XMLReader

getErrorHandler

public ErrorHandler getErrorHandler()
Specified by:
getErrorHandler in interface XMLReader

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)
Specified by:
setErrorHandler in interface XMLReader

getLexicalHandler

protected LexicalHandler getLexicalHandler()

getProperty

public Object getProperty(String name)
                   throws SAXNotRecognizedException,
                          SAXNotSupportedException
Throws a SAXNotRecognizedException exception when the given property does not signify a lexical handler. The property name for a lexical handler is http://xml.org/sax/properties/lexical-handler.

Specified by:
getProperty in interface XMLReader
Throws:
SAXNotRecognizedException
SAXNotSupportedException

setProperty

public void setProperty(String name,
                        Object value)
                 throws SAXNotRecognizedException,
                        SAXNotSupportedException
Throws a SAXNotRecognizedException exception when the given property does not signify a lexical handler. The property name for a lexical handler is http://xml.org/sax/properties/lexical-handler.

Specified by:
setProperty in interface XMLReader
Throws:
SAXNotRecognizedException
SAXNotSupportedException


Apache Camel