|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.parsers.DocumentBuilder
microsoft.exchange.webservices.data.SafeXmlDocument
public class SafeXmlDocument
XmlDocument that does not allow DTD parsing.
Field Summary | |
---|---|
javax.xml.stream.XMLInputFactory |
inputFactory
Initializes a new instance of the SafeXmlDocument class. |
Constructor Summary | |
---|---|
SafeXmlDocument()
|
|
SafeXmlDocument(javax.xml.parsers.DocumentBuilder imp)
Initializes a new instance of the SafeXmlDocument class with the specified XSImplementation. |
|
SafeXmlDocument(XmlNameTable nt)
Initializes a new instance of the SafeXmlDocument class with the specified XmlNameTable. |
Method Summary | |
---|---|
org.w3c.dom.DOMImplementation |
getDOMImplementation()
|
boolean |
isNamespaceAware()
|
boolean |
isValidating()
|
void |
load(java.io.InputStream inStream)
Loads the XML document from the specified stream. |
void |
load(java.io.Reader txtReader)
Loads the XML document from the specified TextReader. |
void |
load(java.lang.String filename)
Loads the XML document from the specified URL. |
void |
load(javax.xml.stream.XMLStreamReader reader)
Loads the XML document from the specified XMLReader. |
void |
loadXml(java.lang.String xml)
Loads the XML document from the specified string. |
org.w3c.dom.Document |
newDocument()
|
org.w3c.dom.Document |
parse(org.xml.sax.InputSource is)
|
void |
setEntityResolver(org.xml.sax.EntityResolver er)
|
void |
setErrorHandler(org.xml.sax.ErrorHandler eh)
|
Methods inherited from class javax.xml.parsers.DocumentBuilder |
---|
getSchema, isXIncludeAware, parse, parse, parse, parse, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public javax.xml.stream.XMLInputFactory inputFactory
Constructor Detail |
---|
public SafeXmlDocument()
public SafeXmlDocument(javax.xml.parsers.DocumentBuilder imp) throws NotSupportedException
imp
- The XmlImplementation to use.
NotSupportedException
public SafeXmlDocument(XmlNameTable nt)
nt
- The XmlNameTable to use.Method Detail |
---|
public void load(java.io.InputStream inStream) throws javax.xml.stream.XMLStreamException
inStream
- The stream containing the XML document to load.
javax.xml.stream.XMLStreamException
public void load(java.lang.String filename)
filename
- URL for the file containing the XML document to load. The URL
can be either a local file or an HTTP URL (a Web address).public void load(java.io.Reader txtReader)
txtReader
- The TextReader used to feed the XML data into the document.public void load(javax.xml.stream.XMLStreamReader reader) throws org.xml.sax.SAXException, java.io.IOException
reader
- The XMLReader used to feed the XML data into the document.
java.io.IOException
org.xml.sax.SAXException
public void loadXml(java.lang.String xml)
xml
- String containing the XML document to load.public org.w3c.dom.DOMImplementation getDOMImplementation()
getDOMImplementation
in class javax.xml.parsers.DocumentBuilder
public boolean isNamespaceAware()
isNamespaceAware
in class javax.xml.parsers.DocumentBuilder
public boolean isValidating()
isValidating
in class javax.xml.parsers.DocumentBuilder
public org.w3c.dom.Document newDocument()
newDocument
in class javax.xml.parsers.DocumentBuilder
public org.w3c.dom.Document parse(org.xml.sax.InputSource is) throws org.xml.sax.SAXException, java.io.IOException
parse
in class javax.xml.parsers.DocumentBuilder
org.xml.sax.SAXException
java.io.IOException
public void setEntityResolver(org.xml.sax.EntityResolver er)
setEntityResolver
in class javax.xml.parsers.DocumentBuilder
public void setErrorHandler(org.xml.sax.ErrorHandler eh)
setErrorHandler
in class javax.xml.parsers.DocumentBuilder
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |