All Packages Class Hierarchy This Package Previous Next Index
Class com.kvisco.xml.DOMReader
com.kvisco.xml.DOMReader
- public class DOMReader
This class is a wrapper for whatever dom package is being used.
- Author:
- Keith Visco (kvisco@ziplink.net)
-
DOMReader()
- Creates a new DOMReader for the default DOM Package
-
DOMReader(String)
- Creates a new DOMReader for the specified DOM Package
-
createDocument()
- Creates a DOM Document using the DOM Package of this DOMReader
-
getDefaultDOMPackageClassName()
- Returns the class name of the default DOMPackage
-
getDOMPackage()
- Returns the DOMPackage being used
-
getDOMPackageClassName()
- Returns the class name of the DOMPackage being used
-
readDocument(InputStream, String, boolean)
- Reads an XML Document from the given InputStream.
-
readDocument(InputStream, String, boolean, Writer)
- Reads an XML Document from the given InputStream.
DOMReader
public DOMReader() throws Exception
- Creates a new DOMReader for the default DOM Package
- Throws: ClassNotFoundException
- when the default DOMPackage
could not be found.
DOMReader
public DOMReader(String domPackageClassName) throws Exception
- Creates a new DOMReader for the specified DOM Package
- Throws: ClassNotFoundException
- when the specified DOMPackage
could not be found.
createDocument
public Document createDocument()
- Creates a DOM Document using the DOM Package of this DOMReader
- Returns:
- the new Document
getDefaultDOMPackageClassName
public static String getDefaultDOMPackageClassName()
- Returns the class name of the default DOMPackage
- Returns:
- the class name of the default DOMPackage
getDOMPackage
public DOMPackage getDOMPackage()
- Returns the DOMPackage being used
- Returns:
- the DOMPackage being used
getDOMPackageClassName
public String getDOMPackageClassName()
- Returns the class name of the DOMPackage being used
- Returns:
- the class name of the DOMPackage being used
readDocument
public Document readDocument(InputStream xmlInput,
String filename,
boolean validate)
- Reads an XML Document from the given InputStream.
- Parameters:
- xmlInput - the XML InputStream
- filename - the filename to use during error reporting.
readDocument
public Document readDocument(InputStream xmlInput,
String filename,
boolean validate,
Writer errorWriter)
- Reads an XML Document from the given InputStream.
- Parameters:
- xmlInput - the XML InputStream
- filename - the filename to use during error reporting.
- errorOuput - is a Writer used for reporting errors
All Packages Class Hierarchy This Package Previous Next Index