public interface DocumentFactory
| Modifier and Type | Method and Description |
|---|---|
Document |
createDocument(String ns,
String root,
String uri)
Creates a Document instance.
|
Document |
createDocument(String ns,
String root,
String uri,
InputStream is)
Creates a Document instance.
|
Document |
createDocument(String ns,
String root,
String uri,
Reader r)
Creates a Document instance.
|
Document |
createDocument(String ns,
String root,
String uri,
XMLReader r)
Creates a Document instance.
|
DocumentDescriptor |
getDocumentDescriptor()
Returns the document descriptor associated with the latest created
document.
|
boolean |
isValidating()
Returns true if the XML stream has to be validated, false otherwise.
|
void |
setValidating(boolean isValidating)
Sets whether or not the XML stream has to be validate, depending on the
specified parameter.
|
void setValidating(boolean isValidating)
isValidating - true implies the XML stream will be validatedboolean isValidating()
Document createDocument(String ns, String root, String uri) throws IOException
ns - The namespace URI of the root element of the document.root - The name of the root element of the document.uri - The document URI.IOException - if an error occured while reading the document.Document createDocument(String ns, String root, String uri, InputStream is) throws IOException
ns - The namespace URI of the root element of the document.root - The name of the root element of the document.uri - The document URI.is - The document input stream.IOException - if an error occured while reading the document.Document createDocument(String ns, String root, String uri, XMLReader r) throws IOException
ns - The namespace URI of the root element of the document.root - The name of the root element of the document.uri - The document URI.r - An XMLReader instanceIOException - if an error occured while reading the document.Document createDocument(String ns, String root, String uri, Reader r) throws IOException
ns - The namespace URI of the root element of the document.root - The name of the root element of the document.uri - The document URI.r - The document reader.IOException - if an error occured while reading the document.DocumentDescriptor getDocumentDescriptor()
Copyright © 2000–2021 Apache Software Foundation. All rights reserved.