org.apache.xerces.jaxp

Class SAXParserImpl.JAXPSAXParser

public static class SAXParserImpl.JAXPSAXParser extends SAXParser

Extension of SAXParser. This class tracks changes to features and properties to allow the parser to be reset to its initial state.
Constructor Summary
JAXPSAXParser()
Method Summary
booleangetFeature(String name)
Forward feature to the schema validator if there is one.
ObjectgetProperty(String name)
Forward property to the schema validator if there is one.
voidparse(InputSource inputSource)
voidparse(String systemId)
voidsetFeature(String name, boolean value)
Override SAXParser's setFeature method to track the initial state of features.
voidsetProperty(String name, Object value)
Override SAXParser's setProperty method to track the initial state of properties.

Constructor Detail

JAXPSAXParser

public JAXPSAXParser()

Method Detail

getFeature

public boolean getFeature(String name)
Forward feature to the schema validator if there is one. *

getProperty

public Object getProperty(String name)
Forward property to the schema validator if there is one. *

parse

public void parse(InputSource inputSource)

parse

public void parse(String systemId)

setFeature

public void setFeature(String name, boolean value)
Override SAXParser's setFeature method to track the initial state of features. This keeps us from affecting the performance of the SAXParser when it is created with XMLReaderFactory.

setProperty

public void setProperty(String name, Object value)
Override SAXParser's setProperty method to track the initial state of properties. This keeps us from affecting the performance of the SAXParser when it is created with XMLReaderFactory.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.