|
||||||||||
| 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.security.SafeXmlDocument
public class SafeXmlDocument
XmlDocument that does not allow DTD parsing.
| Constructor Summary | |
|---|---|
SafeXmlDocument()
|
|
| Method Summary | |
|---|---|
DOMImplementation |
getDOMImplementation()
|
boolean |
isNamespaceAware()
|
boolean |
isValidating()
|
void |
load(InputStream inStream)
Loads the XML document from the specified stream. |
void |
load(Reader txtReader)
Loads the XML document from the specified TextReader. |
void |
load(String filename)
Loads the XML document from the specified URL. |
void |
load(XMLStreamReader reader)
Loads the XML document from the specified XMLReader. |
void |
loadXml(String xml)
Loads the XML document from the specified string. |
Document |
newDocument()
|
Document |
parse(InputSource is)
|
void |
setEntityResolver(EntityResolver er)
|
void |
setErrorHandler(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 |
| Constructor Detail |
|---|
public SafeXmlDocument()
| Method Detail |
|---|
public void load(InputStream inStream)
throws XMLStreamException
inStream - The stream containing the XML document to load.
XMLStreamExceptionpublic void load(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(Reader txtReader)
txtReader - The TextReader used to feed the XML data into the document.
public void load(XMLStreamReader reader)
throws SAXException,
IOException
reader - The XMLReader used to feed the XML data into the document.
IOException
SAXExceptionpublic void loadXml(String xml)
xml - String containing the XML document to load.public DOMImplementation getDOMImplementation()
getDOMImplementation in class DocumentBuilderpublic boolean isNamespaceAware()
isNamespaceAware in class DocumentBuilderpublic boolean isValidating()
isValidating in class DocumentBuilderpublic Document newDocument()
newDocument in class DocumentBuilder
public Document parse(InputSource is)
throws SAXException,
IOException
parse in class DocumentBuilderSAXException
IOExceptionpublic void setEntityResolver(EntityResolver er)
setEntityResolver in class DocumentBuilderpublic void setErrorHandler(ErrorHandler eh)
setErrorHandler in class DocumentBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||