|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.fluxmedia.tmcontrib.generator.AbstractXMLReader
public abstract class AbstractXMLReader
This abstract class implements SAX2 interface XMLReader. It aims to allow the sub-classes to behave like XMLReader implementations. This class is defined in the following book "Java and XSLT" by Eric M. Burke (O'Reilly)
Field Summary | |
---|---|
private org.xml.sax.ContentHandler |
contentHandler
|
private org.xml.sax.DTDHandler |
dtdHandler
|
private org.xml.sax.EntityResolver |
entityResolver
|
private org.xml.sax.ErrorHandler |
errorHandler
|
private java.util.Map |
featureMap
|
private java.util.Map |
propertyMap
|
Constructor Summary | |
---|---|
AbstractXMLReader()
|
Method Summary | |
---|---|
org.xml.sax.ContentHandler |
getContentHandler()
Gets the contentHandler attribute of the AbstractXMLReader object |
org.xml.sax.DTDHandler |
getDTDHandler()
Gets the dTDHandler attribute of the AbstractXMLReader object |
org.xml.sax.EntityResolver |
getEntityResolver()
Gets the entityResolver attribute of the AbstractXMLReader object |
org.xml.sax.ErrorHandler |
getErrorHandler()
Gets the errorHandler attribute of the AbstractXMLReader object |
boolean |
getFeature(java.lang.String name)
Gets the feature attribute of the AbstractXMLReader object |
java.lang.Object |
getProperty(java.lang.String name)
Gets the property attribute of the AbstractXMLReader object |
abstract void |
parse(org.xml.sax.InputSource input)
Sub-classes have to implement this method in order to produce SAX2 events. |
void |
parse(java.lang.String systemId)
Parses the file represented by the systemId |
void |
setContentHandler(org.xml.sax.ContentHandler contentHandler)
Sets the contentHandler attribute of the AbstractXMLReader object |
void |
setDTDHandler(org.xml.sax.DTDHandler dtdHandler)
Sets the dTDHandler attribute of the AbstractXMLReader object |
void |
setEntityResolver(org.xml.sax.EntityResolver entityResolver)
Sets the entityResolver attribute of the AbstractXMLReader object |
void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
Sets the errorHandler attribute of the AbstractXMLReader object |
void |
setFeature(java.lang.String name,
boolean value)
Sets the feature attribute of the AbstractXMLReader object |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the property attribute of the AbstractXMLReader object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Map featureMap
private java.util.Map propertyMap
private org.xml.sax.EntityResolver entityResolver
private org.xml.sax.DTDHandler dtdHandler
private org.xml.sax.ContentHandler contentHandler
private org.xml.sax.ErrorHandler errorHandler
Constructor Detail |
---|
public AbstractXMLReader()
Method Detail |
---|
public abstract void parse(org.xml.sax.InputSource input) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.XMLReader
input
- The InputSource to parse.
java.io.IOException
- if the input has not been found
org.xml.sax.SAXException
- an exception which can wrap others exceptionspublic boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getFeature
in interface org.xml.sax.XMLReader
name
- The feature name
org.xml.sax.SAXNotRecognizedException
- if the feature is not recognized
org.xml.sax.SAXNotSupportedException
- if the feature is not supportedpublic void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setFeature
in interface org.xml.sax.XMLReader
name
- The new feature namevalue
- The new feature value
org.xml.sax.SAXNotRecognizedException
- if the feature is not recognized
org.xml.sax.SAXNotSupportedException
- if the feature is not supportedpublic java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getProperty
in interface org.xml.sax.XMLReader
name
- The property name
org.xml.sax.SAXNotRecognizedException
- if the property is not recognized
org.xml.sax.SAXNotSupportedException
- if the property is not supportedpublic 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.XMLReader
name
- The new property namevalue
- The new property value
org.xml.sax.SAXNotRecognizedException
- if the property is not recognized
org.xml.sax.SAXNotSupportedException
- if the property is not supportedpublic void setEntityResolver(org.xml.sax.EntityResolver entityResolver)
setEntityResolver
in interface org.xml.sax.XMLReader
entityResolver
- The new entityResolver valuepublic org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver
in interface org.xml.sax.XMLReader
public void setDTDHandler(org.xml.sax.DTDHandler dtdHandler)
setDTDHandler
in interface org.xml.sax.XMLReader
dtdHandler
- The new dTDHandler valuepublic org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler
in interface org.xml.sax.XMLReader
public void setContentHandler(org.xml.sax.ContentHandler contentHandler)
setContentHandler
in interface org.xml.sax.XMLReader
contentHandler
- The new contentHandler valuepublic org.xml.sax.ContentHandler getContentHandler()
getContentHandler
in interface org.xml.sax.XMLReader
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
setErrorHandler
in interface org.xml.sax.XMLReader
errorHandler
- The new errorHandler valuepublic org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler
in interface org.xml.sax.XMLReader
public void parse(java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.XMLReader
systemId
- The systemID of the file to parse
java.io.IOException
- if the input has not been found
org.xml.sax.SAXException
- an exception which can wrap others exceptions
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |