|
Xerces 3.1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.xml.parsers.NonValidatingDOMParser
NonValidatingDOMParser exists to provide backwards compatibility with XML4J V2.0
Field Summary | |
static int |
DEFERRED
Deprecated. Represents deferred DOM Node expansion of Node objects and data. |
protected DOMParser |
fParser
Deprecated. |
static int |
FULL
Deprecated. Represents full DOM Node expansion of Node objects and data. |
Constructor Summary | |
NonValidatingDOMParser()
Deprecated. Default constructor. |
Method Summary | |
Node |
getCurrentNode()
Deprecated. Return the current DOM Node. |
Document |
getDocument()
Deprecated. Returns the document. |
boolean |
getExpandEntityReferences()
Deprecated. Return a boolean which says whether EntityReference Nodes are expanded (replaced) by this parser. |
int |
getNodeExpansion()
Deprecated. Return the Node expansion level integer mapping to the constants in DOMParser. |
void |
parse(InputSource source)
Deprecated. Parses the specified input source. |
void |
parse(java.lang.String systemId)
Deprecated. |
void |
reset()
Deprecated. |
protected void |
resetOrCopy()
Deprecated. |
void |
setDocumentClass(java.lang.String documentClass)
Deprecated. This allows the programmer to decide which document factory to use when constructing the DOM tree. |
void |
setErrorHandler(ErrorHandler handler)
Deprecated. |
void |
setExpandEntityReferences(boolean expand)
Deprecated. Sets whether EntityReference Nodes are expanded (replaced) by this parser. |
void |
setLocale(java.util.Locale locale)
Deprecated. |
void |
setNodeExpansion(int nodeExpansion)
Deprecated. Sets whether Nodes are created and the data is kept within the Nodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FULL
public static final int DEFERRED
protected DOMParser fParser
Constructor Detail |
public NonValidatingDOMParser()
Method Detail |
public void reset()
protected void resetOrCopy()
public void setExpandEntityReferences(boolean expand)
The default value is false, EntityReference Nodes are kept.
keep
- =true
means expanding entity references;
=false
means maintain entity references.EntityReference
,
com.ibm.xml.parser.GeneralReference
public boolean getExpandEntityReferences()
The default value is false, EntityReference Nodes are kept.
keep
- =true
means expanding entity references;
=false
means maintain entity references.EntityReference
,
com.ibm.xml.parser.GeneralReference
public void setNodeExpansion(int nodeExpansion)
nodeExpansion
- public int getNodeExpansion()
nodeExpansion
- public Node getCurrentNode()
This function will only return meaningful Node values when setNodeExpansion(FULL). When setNodeExpansion(DEFERRED) is set, Node creation is deferred and getCurrentNode() will likely return null.
This function is useful for querying the parser when getting an error or warning callback.
setNodeExpansion(int)
public void setDocumentClass(java.lang.String documentClass)
Note: Setting the document class name to any other document class besides the default class will switch the node expansion to FULL.
documentClass
- The fully qualified class name of the
document factory to use when constructing
the DOM tree.#DEFERRED_DOCUMENT_CLASS
,
setNodeExpansion(int)
,
FULL
public Document getDocument()
public void setErrorHandler(ErrorHandler handler)
public void setLocale(java.util.Locale locale) throws SAXException
public void parse(InputSource source) throws SAXException, java.io.IOException
source
- The input source.SAXException
- Throws exception on SAX error.java.io.IOException
- Throws exception on i/o error.public void parse(java.lang.String systemId) throws SAXException, java.io.IOException
|
Xerces 3.1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |