|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.commons.util.DOMParser
public class DOMParser
An XML Document Object Model parser. Objects of this class are DOM parsers.
| Method Summary | |
|---|---|
Document |
getDocument()
Get the document. |
EntityResolver |
getEntityResolver()
Return the current entity resolver. |
ErrorHandler |
getErrorHandler()
Return the current error handler. |
boolean |
getFeature(String featureId)
Query the current state of any feature in a SAX2 parser. |
String[] |
getFeaturesRecognized()
Returns a list of features that this parser recognizes. |
Locator |
getLocator()
return the locator being used by the parser |
String[] |
getPropertiesRecognized()
Returns a list of properties that this parser recognizes. |
Object |
getProperty(String propertyId)
Return the current value of a property in a SAX2 parser. |
boolean |
isFeatureRecognized(String featureId)
Returns true if the specified feature is recognized. |
boolean |
isPropertyRecognized(String propertyId)
Returns true if the specified property is recognized. |
void |
parse(InputSource source)
Parses the specified input source. |
void |
parse(String systemID)
Parses the input source specified by the given system identifier. |
void |
reset()
Resets the parser. |
void |
resetOrCopy()
Resets or copies the parser. |
void |
setEntityResolver(EntityResolver resolver)
Sets the resolver used to resolve external entities. |
void |
setErrorHandler(ErrorHandler handler)
Sets the error handler. |
void |
setFeature(String featureId,
boolean state)
Set the state of any feature in a SAX2 parser. |
void |
setLocale(Locale locale)
Set the locale to use for messages. |
void |
setProperty(String propertyId,
Object value)
Set the value of any property in a SAX2 parser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Document getDocument()
public String[] getFeaturesRecognized()
public String[] getPropertiesRecognized()
public void reset()
throws Exception
Exception
public void resetOrCopy()
throws Exception
Exception
public void setFeature(String featureId,
boolean state)
throws SAXNotRecognizedException,
SAXNotSupportedException
featureId - The unique identifier (URI) of the feature.state - The requested state of the feature (true or false).
SAXNotRecognizedException - If the requested feature is
not known.
SAXNotSupportedException - If the requested feature is
known, but the requested state
is not supported.
public boolean getFeature(String featureId)
throws SAXNotRecognizedException,
SAXNotSupportedException
featureId - The unique identifier (URI) of the feature
being set.
SAXNotRecognizedException - If the requested feature is
not known.
SAXNotSupportedException
public void setProperty(String propertyId,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
propertyId - The unique identifier (URI) of the property
being set.value - The value to which the property is being set.
SAXNotRecognizedException - If the requested property is
not known.
SAXNotSupportedException - If the requested property is
known, but the requested
value is not supported.
public Object getProperty(String propertyId)
throws SAXNotRecognizedException,
SAXNotSupportedException
propertyId - The unique identifier (URI) of the property
being set.
SAXNotRecognizedException - If the requested property is
not known.
SAXNotSupportedExceptionpublic boolean isFeatureRecognized(String featureId)
public boolean isPropertyRecognized(String propertyId)
public final Locator getLocator()
public void setEntityResolver(EntityResolver resolver)
resolver - The new entity resolver. Passing a null value will
uninstall the currently installed resolver.public EntityResolver getEntityResolver()
setEntityResolver(org.xml.sax.EntityResolver)public void setErrorHandler(ErrorHandler handler)
handler - The new error handler.public ErrorHandler getErrorHandler()
setErrorHandler(org.xml.sax.ErrorHandler)
public void parse(InputSource source)
throws SAXException,
IOException
source - The input source.
SAXException - Throws exception on SAX error.
IOException - Throws exception on i/o error.
public void parse(String systemID)
throws SAXException,
IOException
This method is equivalent to the following:
parse(new InputSource(systemId));
systemID - The input source.
SAXException - Throws exception on SAX error.
IOException - Throws exception on i/o error.
public void setLocale(Locale locale)
throws SAXException
locale - The locale object to use for localization of messages.
SAXException - An exception thrown if the parser does not
support the specified locale.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||