|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.parsers.DocumentBuilder
com.verisign.epp.util.EPPXMLParser
public class EPPXMLParser
XML Parser class used for EPP parsing. This class is
a subclass of DocumentBuilder
and is
a thin-wrapper around an initialized DocumentBuilder
instance. The EPPXMLParser
sets the
required parser settings (i.e. Namespace aware, validating)
and sets a standard error handler and entity resolver.
Instances of EPPXMLParser
can be polled,
since the default constructor will do all of the initialization
required for the parser to properly parse EPP XML messages.
Field Summary | |
---|---|
static java.lang.String |
POOL
Name of the EPP XML Parser Pool managed by GenericPoolManager . |
Constructor Summary | |
---|---|
EPPXMLParser()
Default constructor, which will create the contained DocumentBuilder and will set the default
error handler (EPPXMLErrorHandler ) and the
default entity resolver (EPPEntityResolver ). |
|
EPPXMLParser(boolean validateSchema)
Create a new EPPXMLParser with the specified validation setting. |
Method Summary | |
---|---|
org.w3c.dom.DOMImplementation |
getDOMImplementation()
Delegates to the contained DocumentBuilder
instance for behavior. |
boolean |
isNamespaceAware()
Delegates to the contained DocumentBuilder
instance for behavior. |
boolean |
isValidating()
Delegates to the contained DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
newDocument()
Delegates to the contained DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
parse(java.io.File aFile)
Delegates to the contained DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
parse(org.xml.sax.InputSource aSource)
Delegates to the contained DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
parse(java.io.InputStream aStream)
Delegates to the contained DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
parse(java.io.InputStream aStream,
java.lang.String aSystemId)
Delegates to the contained DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
parse(java.lang.String aURI)
Delegates to the contained DocumentBuilder
instance for behavior. |
void |
setEntityResolver(org.xml.sax.EntityResolver aResolver)
Delegates to the contained DocumentBuilder
instance for behavior. |
void |
setErrorHandler(org.xml.sax.ErrorHandler aHandler)
Delegates to the contained DocumentBuilder
instance for behavior. |
Methods inherited from class javax.xml.parsers.DocumentBuilder |
---|
getSchema, isXIncludeAware, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String POOL
GenericPoolManager
.
Constructor Detail |
---|
public EPPXMLParser()
DocumentBuilder
and will set the default
error handler (EPPXMLErrorHandler
) and the
default entity resolver (EPPEntityResolver
).
public EPPXMLParser(boolean validateSchema)
validateSchema
- Parser will perform schema validation if true and won't
if false.Method Detail |
---|
public org.w3c.dom.DOMImplementation getDOMImplementation()
DocumentBuilder
instance for behavior.
getDOMImplementation
in class javax.xml.parsers.DocumentBuilder
public boolean isNamespaceAware()
DocumentBuilder
instance for behavior.
isNamespaceAware
in class javax.xml.parsers.DocumentBuilder
public boolean isValidating()
DocumentBuilder
instance for behavior.
isValidating
in class javax.xml.parsers.DocumentBuilder
public org.w3c.dom.Document parse(java.io.File aFile) throws org.xml.sax.SAXException, java.io.IOException
DocumentBuilder
instance for behavior.
parse
in class javax.xml.parsers.DocumentBuilder
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document parse(java.io.InputStream aStream) throws org.xml.sax.SAXException, java.io.IOException
DocumentBuilder
instance for behavior.
parse
in class javax.xml.parsers.DocumentBuilder
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document parse(org.xml.sax.InputSource aSource) throws org.xml.sax.SAXException, java.io.IOException
DocumentBuilder
instance for behavior.
parse
in class javax.xml.parsers.DocumentBuilder
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document parse(java.io.InputStream aStream, java.lang.String aSystemId) throws org.xml.sax.SAXException, java.io.IOException
DocumentBuilder
instance for behavior.
parse
in class javax.xml.parsers.DocumentBuilder
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document parse(java.lang.String aURI) throws org.xml.sax.SAXException, java.io.IOException
DocumentBuilder
instance for behavior.
parse
in class javax.xml.parsers.DocumentBuilder
org.xml.sax.SAXException
java.io.IOException
public void setEntityResolver(org.xml.sax.EntityResolver aResolver)
DocumentBuilder
instance for behavior.
setEntityResolver
in class javax.xml.parsers.DocumentBuilder
public void setErrorHandler(org.xml.sax.ErrorHandler aHandler)
DocumentBuilder
instance for behavior.
setErrorHandler
in class javax.xml.parsers.DocumentBuilder
public org.w3c.dom.Document newDocument()
DocumentBuilder
instance for behavior.
newDocument
in class javax.xml.parsers.DocumentBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |