|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.xml.parsers.SAXParserFactory
A factory to configure and create SAXParser instances.
Note: This class is not thread-safe. Applications must serialize access to this class if two or more threads access the same instance.
| Constructor Summary | ||
protected |
SAXParserFactory()
|
|
| Method Summary | ||
boolean |
getAllowUndefinedNamespaces()
Determines whether this factory is configured to produce parsers that allow undefined namespaces. |
|
boolean |
isNamespaceAware()
Determines whether this factory is configured to produce parsers that support namespaces |
|
boolean |
isValidating()
Determines whether this factory is configured to produce parsers that validate XML documents. |
|
static SAXParserFactory |
newInstance()
Creates a new SAXParserFactory object. |
|
abstract SAXParser |
newSAXParser()
Creates a new SAXParser object using the currently configuration. |
|
void |
setAllowUndefinedNamespaces(boolean allow)
Configures parsers produced by this factory to allow undefined namespaces. |
|
void |
setNamespaceAware(boolean aware)
Configures parsers produced by this factory to support namespaces. |
|
void |
setValidating(boolean validate)
Configures parsers produced by this factory to validate XML documents. |
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
| Method Detail |
public boolean getAllowUndefinedNamespaces()
public boolean isNamespaceAware()
public boolean isValidating()
public static SAXParserFactory newInstance()
SAXParserFactory object.SAXParserFactory object.public abstract SAXParser newSAXParser() throws ParserConfigurationException, SAXException
SAXParser object using the currently configuration.SAXParser object.ParserConfigurationException - Thrown when a parser cannot be created with the current parameters.public void setAllowUndefinedNamespaces(boolean allow)
allow - True to configure parsers produced by this factory to allow undefined namespaces, false otherwise.public void setNamespaceAware(boolean aware)
true).aware - True to configure parsers produced by this factory to support namespaces, false otherwise.public void setValidating(boolean validate)
false).validate - True to configure parsers produced by this factory
to validate XML documents, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.