All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.jdom.adapters.AbstractDOMAdapter | +----org.jdom.adapters.ProjectXDOMAdapter
ProjectXDOMAdapater
This class defines wrapper behavior for obtaining a DOM
Document
object from a Sun Project X DOM parser.
This creates an empty Document
object based
on a specific parser implementation.
This creates a new {
public ProjectXDOMAdapter()
public Document getDocument(InputStream in, boolean validate) throws IOException
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 Document createDocument() throws IOException
This creates an empty Document
object based
on a specific parser implementation.
Document
- created DOM Document.
All Packages Class Hierarchy This Package Previous Next Index