Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.xots.admin.server
Class DOMParser  view DOMParser download DOMParser.java

java.lang.Object
  extended byorg.xots.admin.server.DOMParser
All Implemented Interfaces:
DOMParserWrapper, org.xml.sax.ErrorHandler

public class DOMParser
extends java.lang.Object
implements DOMParserWrapper, org.xml.sax.ErrorHandler

Wraps the Xerces DOM parser and extends NonValidatingDOMParser

Version:
$id$

Field Summary
(package private)  org.apache.xerces.parsers.DOMParser parser
          Parser.
 
Constructor Summary
DOMParser()
          Default constructor.
 
Method Summary
 void error(org.xml.sax.SAXParseException ex)
          Error.
 void fatalError(org.xml.sax.SAXParseException ex)
          Fatal error.
private  java.lang.String getLocationString(org.xml.sax.SAXParseException ex)
          Returns a string of the location.
 org.w3c.dom.Document parse(java.lang.String uri)
          Parses the specified URI and returns the document.
 void setFeature(java.lang.String featureId, boolean state)
          Set the state of a feature.
 void warning(org.xml.sax.SAXParseException ex)
          Warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parser

org.apache.xerces.parsers.DOMParser parser
Parser.

Constructor Detail

DOMParser

public DOMParser()
Default constructor.

Method Detail

parse

public org.w3c.dom.Document parse(java.lang.String uri)
                           throws java.lang.Exception
Parses the specified URI and returns the document.

Specified by:
parse in interface DOMParserWrapper

setFeature

public void setFeature(java.lang.String featureId,
                       boolean state)
                throws org.xml.sax.SAXNotRecognizedException,
                       org.xml.sax.SAXNotSupportedException
Description copied from interface: DOMParserWrapper
Set the state of a feature. Set the state of any feature in a SAX2 parser. The parser might not recognize the feature, and if it does recognize it, it might not be able to fulfill the request.

Specified by:
setFeature in interface DOMParserWrapper

warning

public void warning(org.xml.sax.SAXParseException ex)
Warning.

Specified by:
warning in interface org.xml.sax.ErrorHandler

error

public void error(org.xml.sax.SAXParseException ex)
Error.

Specified by:
error in interface org.xml.sax.ErrorHandler

fatalError

public void fatalError(org.xml.sax.SAXParseException ex)
                throws org.xml.sax.SAXException
Fatal error.

Specified by:
fatalError in interface org.xml.sax.ErrorHandler

getLocationString

private java.lang.String getLocationString(org.xml.sax.SAXParseException ex)
Returns a string of the location.