|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.stax.StaxStreamXMLReader
public class StaxStreamXMLReader
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 |
---|
protected void parseInternal() throws SAXException, XMLStreamException
SAXException
XMLStreamException
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getFeature
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
protected void setStandalone(boolean standalone)
protected boolean hasNamespacesFeature()
http://xml.org/sax/features/namespaces
is turned on.
protected boolean hasNamespacePrefixesFeature()
http://xml.org/sax/features/namespaces-prefixes
is turned on.
protected String toQualifiedName(QName qName)
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.
qName
- the QName
public final void parse(InputSource ignored) throws SAXException
NOTE:: The given InputSource
is not read, but ignored.
parse
in interface XMLReader
ignored
- is ignored
SAXException
- a SAX exception, possibly wrapping a XMLStreamException
public final void parse(String ignored) throws SAXException
NOTE:: The given system identifier is not read, but ignored.
parse
in interface XMLReader
ignored
- is ignored
SAXException
- A SAX exception, possibly wrapping a XMLStreamException
protected void startPrefixMapping(String prefix, String namespace) throws SAXException
SAXException
ContentHandler.startPrefixMapping(String, String)
protected void endPrefixMapping(String prefix) throws SAXException
SAXException
ContentHandler.endPrefixMapping(String)
public ContentHandler getContentHandler()
getContentHandler
in interface XMLReader
public void setContentHandler(ContentHandler contentHandler)
setContentHandler
in interface XMLReader
public void setDTDHandler(DTDHandler dtdHandler)
setDTDHandler
in interface XMLReader
public DTDHandler getDTDHandler()
getDTDHandler
in interface XMLReader
public EntityResolver getEntityResolver()
getEntityResolver
in interface XMLReader
public void setEntityResolver(EntityResolver entityResolver)
setEntityResolver
in interface XMLReader
public ErrorHandler getErrorHandler()
getErrorHandler
in interface XMLReader
public void setErrorHandler(ErrorHandler errorHandler)
setErrorHandler
in interface XMLReader
protected LexicalHandler getLexicalHandler()
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
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
.
getProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
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
.
setProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |