Package org.apache.camel.component.stax
Class StaxStreamXMLReader
java.lang.Object
org.apache.camel.component.stax.StaxStreamXMLReader
- All Implemented Interfaces:
XMLReader
class extracted from spring 3.0.6.RELEASE.
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidendPrefixMapping(String prefix) Ends the prefix mapping for the given prefix.booleangetFeature(String name) protected LexicalHandlergetProperty(String name) Throws aSAXNotRecognizedExceptionexception when the given property does not signify a lexical handler.protected booleanIndicates whether the SAX featurehttp://xml.org/sax/features/namespaces-prefixesis turned on.protected booleanIndicates whether the SAX featurehttp://xml.org/sax/features/namespacesis turned on.final voidParse the StAX XML reader passed at construction-time.final voidparse(InputSource ignored) Parse the StAX XML reader passed at construction-time.protected voidvoidsetContentHandler(ContentHandler contentHandler) voidsetDTDHandler(DTDHandler dtdHandler) voidsetEntityResolver(EntityResolver entityResolver) voidsetErrorHandler(ErrorHandler errorHandler) voidsetFeature(String name, boolean value) voidsetProperty(String name, Object value) Throws aSAXNotRecognizedExceptionexception when the given property does not signify a lexical handler.protected voidsetStandalone(boolean standalone) protected voidstartPrefixMapping(String prefix, String namespace) Starts the prefix mapping for the given prefix.protected StringtoQualifiedName(QName qName) Convert aQNameto a qualified name, as used by DOM and SAX.
-
Method Details
-
parseInternal
- Throws:
SAXExceptionXMLStreamException
-
getFeature
- Specified by:
getFeaturein interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setFeaturein interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setStandalone
protected void setStandalone(boolean standalone) -
hasNamespacesFeature
protected boolean hasNamespacesFeature()Indicates whether the SAX featurehttp://xml.org/sax/features/namespacesis turned on. -
hasNamespacePrefixesFeature
protected boolean hasNamespacePrefixesFeature()Indicates whether the SAX featurehttp://xml.org/sax/features/namespaces-prefixesis turned on. -
toQualifiedName
Convert aQNameto a qualified name, as used by DOM and SAX. The returned string has a format ofprefix:localNameif the prefix is set, or justlocalNameif not.- Parameters:
qName- theQName- Returns:
- the qualified name
-
parse
Parse the StAX XML reader passed at construction-time.NOTE:: The given
InputSourceis not read, but ignored.- Specified by:
parsein interfaceXMLReader- Parameters:
ignored- is ignored- Throws:
SAXException- a SAX exception, possibly wrapping aXMLStreamException
-
parse
Parse the StAX XML reader passed at construction-time.NOTE:: The given system identifier is not read, but ignored.
- Specified by:
parsein interfaceXMLReader- Parameters:
ignored- is ignored- Throws:
SAXException- A SAX exception, possibly wrapping aXMLStreamException
-
startPrefixMapping
Starts the prefix mapping for the given prefix.- Throws:
SAXException- See Also:
-
endPrefixMapping
Ends the prefix mapping for the given prefix.- Throws:
SAXException- See Also:
-
getContentHandler
- Specified by:
getContentHandlerin interfaceXMLReader
-
setContentHandler
- Specified by:
setContentHandlerin interfaceXMLReader
-
setDTDHandler
- Specified by:
setDTDHandlerin interfaceXMLReader
-
getDTDHandler
- Specified by:
getDTDHandlerin interfaceXMLReader
-
getEntityResolver
- Specified by:
getEntityResolverin interfaceXMLReader
-
setEntityResolver
- Specified by:
setEntityResolverin interfaceXMLReader
-
getErrorHandler
- Specified by:
getErrorHandlerin interfaceXMLReader
-
setErrorHandler
- Specified by:
setErrorHandlerin interfaceXMLReader
-
getLexicalHandler
-
getProperty
Throws aSAXNotRecognizedExceptionexception when the given property does not signify a lexical handler. The property name for a lexical handler ishttp://xml.org/sax/properties/lexical-handler.- Specified by:
getPropertyin interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setProperty
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException Throws aSAXNotRecognizedExceptionexception when the given property does not signify a lexical handler. The property name for a lexical handler ishttp://xml.org/sax/properties/lexical-handler.- Specified by:
setPropertyin interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-