|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.ddtek.jxtr.JXTRSaxReader
JXTRSaxReader implements a SAX2 XMLReader interface to be used with a JXTRQuery, JXTRResultSetWrapper, or JXTRColInfo object.
More information about SAX2 can be found in most XML books or can be obtained from SAX 2.0: The Simple API for XML.
JXTRSaxReader supports the following features.
JXTRSaxReader supports the following property.
Because JXTRSaxReader must be used with JXTRQuery or JXTRResultSetWrapper, the following restrictions are imposed.
parse(InputSource) can only be used when the
input source is an instance of JXTRSaxInputSource.parse(java.lang.String) always throws a
SAXException.parse(JXTRQueryBase) is an extension to the standard
interface. It invokes SAX2 callbacks based on a JXTRQuery or
JXTRResultSetWrapper object
(also see JXTRQueryBase.executeSAX(XMLReader)).parse(JXTRColInfo) is an extension to the standard
interface. It invokes SAX2 callbacks based on a JXTRColInfo or
object.
| Field Summary | |
static java.lang.String |
lexicalHandlerURI1
Lexical handler property URI. |
static java.lang.String |
lexicalHandlerURI2
Lexical handler property URI. |
static java.lang.String |
nsPrefixURI
Namespace prefix feature URI. |
static java.lang.String |
nsURI
Namespace feature URI. |
static java.lang.String |
validationURI
Validation feature URI. |
| Constructor Summary | |
JXTRSaxReader()
Default constructor. |
|
JXTRSaxReader(org.xml.sax.XMLReader xmlReader)
Constructs a JXTRSaxReader from a standard SAX2 XMLReader by performing the following tasks. |
|
| Method Summary | |
org.xml.sax.ContentHandler |
getContentHandler()
Retrieves content handler for this XMLReader. |
org.xml.sax.DTDHandler |
getDTDHandler()
Retrieves DTD handler for this XMLReader. |
org.xml.sax.EntityResolver |
getEntityResolver()
Retrieves entity resolver for this XMLReader. |
org.xml.sax.ErrorHandler |
getErrorHandler()
Retrieves error handler for this XMLReader. |
boolean |
getFeature(java.lang.String name)
Gets the value for the specified feature. |
java.lang.Object |
getProperty(java.lang.String name)
Gets the value for the specified property. |
void |
parse(org.xml.sax.InputSource input)
Parses XML from the specified input source. |
void |
parse(JXTRColInfo jxtrColInfo)
Parses XML from the specified JXTRColInfo object (for example, executes the jXTransformer query and invokes the registered SAX2 XMLReader callbacks as the jXTransformer query results are being retrieved). |
void |
parse(JXTRQueryBase jxtrQ)
Parses XML from the specified JXTRQuery or JXTRResultSetWrapper object (for example, executes the jXTransformer query and invokes the registered SAX2 XMLReader callbacks as the jXTransformer query results are being retrieved). |
void |
parse(java.lang.String systemId)
Parses XML from the specified System ID. |
void |
setContentHandler(org.xml.sax.ContentHandler handler)
Registers the specified SAX2 content handler. |
void |
setDTDHandler(org.xml.sax.DTDHandler handler)
Registers the specified DTD handler. |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
Registers the specified Entity resolver. |
void |
setErrorHandler(org.xml.sax.ErrorHandler handler)
Registers the specified Entity resolver. |
void |
setFeature(java.lang.String name,
boolean value)
Sets the specified feature to the specified value. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the specified property to the specified value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String nsURI
public static java.lang.String nsPrefixURI
public static java.lang.String validationURI
public static java.lang.String lexicalHandlerURI1
public static java.lang.String lexicalHandlerURI2
| Constructor Detail |
public JXTRSaxReader()
public JXTRSaxReader(org.xml.sax.XMLReader xmlReader)
throws org.xml.sax.SAXException
JXTRSaxReader)
xmlReader - XMLReader from which the settings will be copied.
org.xml.sax.SAXNotRecognizedException - Required JXTRSaxReader setting
is not recognized by the specified XMLReader object.
org.xml.sax.SAXNotSupportedException - One or multiple features of the
specified XMLReader are not supported by the JXTRSaxReader
object.
org.xml.sax.SAXException| Method Detail |
public org.xml.sax.ContentHandler getContentHandler()
getContentHandler in interface org.xml.sax.XMLReaderpublic org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler in interface org.xml.sax.XMLReaderpublic org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver in interface org.xml.sax.XMLReaderpublic org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler in interface org.xml.sax.XMLReader
public boolean getFeature(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getFeature in interface org.xml.sax.XMLReadername - URI of feature for which the value is requested.
SAXNotRecognizedException, - SAXNotSupportedException.
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public java.lang.Object getProperty(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getProperty in interface org.xml.sax.XMLReadername - URI of property for which the value is requested.
SAXNotRecognizedException, - SAXNotSupportedException.
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void parse(org.xml.sax.InputSource input)
throws org.xml.sax.SAXException
JXTRSaxInputSource.
parse in interface org.xml.sax.XMLReaderinput - JXTRSaxInputSource object that was constructed
using (com.ddtek.jxtr.JXTRQueryBase) or for which
(@link JXTRSaxInputSource#setJXTRQuery
(com.ddtek.jxtr.JXTRQueryBase jxtrQ)} has been invoked.
org.xml.sax.SAXException
public void parse(java.lang.String systemId)
throws org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReaderSAXException.
org.xml.sax.SAXException
public void parse(JXTRQueryBase jxtrQ)
throws org.xml.sax.SAXException
jxtrQ - JXTRQuery or JXTRResultSetWrapper object for which the
SAX2 events will be generated.
SAXException.
org.xml.sax.SAXException
public void parse(JXTRColInfo jxtrColInfo)
throws org.xml.sax.SAXException
SAXException.
org.xml.sax.SAXExceptionpublic void setContentHandler(org.xml.sax.ContentHandler handler)
setContentHandler in interface org.xml.sax.XMLReaderhandler - The SAX2 content handler to register.public void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler in interface org.xml.sax.XMLReaderhandler - The SAX2 DTD handler to register.public void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver in interface org.xml.sax.XMLReaderresolver - The SAX2 entity resolver to register.public void setErrorHandler(org.xml.sax.ErrorHandler handler)
setErrorHandler in interface org.xml.sax.XMLReaderhandler - The SAX2 entity resolver to register.
public void setFeature(java.lang.String name,
boolean value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
setFeature in interface org.xml.sax.XMLReadername - URI of feature to set.value - Value of feature.
SAXNotRecognizedException, - SAXNotSupportedException.
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setProperty(java.lang.String name,
java.lang.Object value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
setProperty in interface org.xml.sax.XMLReadername - URI of property to set.value - Value of property.
SAXNotRecognizedException, - SAXNotSupportedException.
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||