All Packages Class Hierarchy This Package Previous Next Index
Interface com.kvisco.xml.parser.DOMPackage
- public interface DOMPackage
This class is the basic interface the different DOM Packages need
to implement for XSL:P support.
-
createDocument()
- Creates a DOM Document for this DOMPackage
-
readDocument(Reader, String, PrintWriter)
- Reads an XML Document from the given Reader.
-
setDocumentType(Document, String)
- Sets the DocumentType for the given Document.
-
setValidation(boolean)
- Sets whether or not to Validate the Document
createDocument
public abstract Document createDocument()
- Creates a DOM Document for this DOMPackage
- Returns:
- the new Document
readDocument
public abstract Document readDocument(Reader reader,
String filename,
PrintWriter errorWriter)
- Reads an XML Document from the given Reader.
- Parameters:
- reader - the Reader for reading the XML stream
- filename - the filename used for reporting errors
- errorWriter - the PrintWriter to write all errors to
setDocumentType
public abstract void setDocumentType(Document document,
String systemId)
- Sets the DocumentType for the given Document. The
Document must be a Document supported by this
DOMPackage
setValidation
public abstract void setValidation(boolean validate)
- Sets whether or not to Validate the Document
- Parameters:
- validate - a boolean indicating whether or not to
validate the Document
All Packages Class Hierarchy This Package Previous Next Index