All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.jdom.adapters.AbstractDOMAdapter
AbstractDOMAdapter
This class defines wrapper behavior for obtaining a DOM
Document
object from a DOM parser.
This creates an empty Document
object based
on a specific parser implementation.
This creates an empty Document
object based
on a specific parser implementation with the given DOCTYPE.
This creates a new
This creates a new
This attempts to change the DocumentType to have the given internal DTD
subset value.
{
getDocument(InputStream, boolean)
{
setInternalSubset(DocumentType, String)
public AbstractDOMAdapter()
public Document getDocument(File filename, boolean validate) throws Exception
This creates a new {@link Document}
from an
existing InputStream
by letting a DOM
parser handle parsing using the supplied stream.
boolean
to indicate if validation should occur.
Document
- instance ready for use.
public abstract Document getDocument(InputStream in, boolean validate) throws Exception
This creates a new {@link Document}
from an
existing InputStream
by letting a DOM
parser handle parsing using the supplied stream.
InputStream
to parse.
boolean
to indicate if validation should occur.
Document
- instance ready for use.
public abstract Document createDocument() throws Exception
This creates an empty Document
object based
on a specific parser implementation.
Document
- created DOM Document.
public Document createDocument(DocType doctype) throws Exception
This creates an empty Document
object based
on a specific parser implementation with the given DOCTYPE.
If the doctype parameter is null, the behavior is the same as
calling createDocument()
.
DocType
of the document.
Document
- created DOM Document.
protected void setInternalSubset(DocumentType dt, String s)
This attempts to change the DocumentType to have the given internal DTD subset value. This is not a standard ability in DOM, so it's only available with some parsers. Subclasses can alter the mechanism by which the attempt is made to set the value.
All Packages Class Hierarchy This Package Previous Next Index