public class DefaultHandler
implements EntityResolver, DTDHandler, ContentHandler, ErrorHandler
{
-
-\f
+
+
////////////////////////////////////////////////////////////////////
// Default implementation of the EntityResolver interface.
////////////////////////////////////////////////////////////////////
-
+
/**
* Resolve an external entity.
*
*
* @param publicId The public identifer, or null if none is
* available.
- * @param systemId The system identifier provided in the XML
+ * @param systemId The system identifier provided in the XML
* document.
* @return The new input source, or null to require the
* default behaviour.
* @see org.xml.sax.EntityResolver#resolveEntity
*/
public InputSource resolveEntity (String publicId, String systemId)
- throws IOException, SAXException
+ throws IOException, SAXException
{
- return null;
+ return null;
}
-
-
-\f
+
+
+
////////////////////////////////////////////////////////////////////
// Default implementation of DTDHandler interface.
////////////////////////////////////////////////////////////////////
-
-
+
+
/**
* Receive notification of a notation declaration.
*
* @see org.xml.sax.DTDHandler#notationDecl
*/
public void notationDecl (String name, String publicId, String systemId)
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
-
-
+
+
/**
* Receive notification of an unparsed entity declaration.
*
* @see org.xml.sax.DTDHandler#unparsedEntityDecl
*/
public void unparsedEntityDecl (String name, String publicId,
- String systemId, String notationName)
- throws SAXException
+ String systemId, String notationName)
+ throws SAXException
{
- // no op
+ // no op
}
-
-
-\f
+
+
+
////////////////////////////////////////////////////////////////////
// Default implementation of ContentHandler interface.
////////////////////////////////////////////////////////////////////
-
-
+
+
/**
* Receive a Locator object for document events.
*
*/
public void setDocumentLocator (Locator locator)
{
- // no op
+ // no op
}
-
-
+
+
/**
* Receive notification of the beginning of the document.
*
* @see org.xml.sax.ContentHandler#startDocument
*/
public void startDocument ()
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
-
-
+
+
/**
* Receive notification of the end of the document.
*
* @see org.xml.sax.ContentHandler#endDocument
*/
public void endDocument ()
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
* @see org.xml.sax.ContentHandler#startPrefixMapping
*/
public void startPrefixMapping (String prefix, String uri)
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
* @see org.xml.sax.ContentHandler#endPrefixMapping
*/
public void endPrefixMapping (String prefix)
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
-
-
+
+
/**
* Receive notification of the start of an element.
*
* @see org.xml.sax.ContentHandler#startElement
*/
public void startElement (String uri, String localName,
- String qName, Attributes attributes)
- throws SAXException
+ String qName, Attributes attributes)
+ throws SAXException
{
- // no op
+ // no op
}
-
-
+
+
/**
* Receive notification of the end of an element.
*
* @see org.xml.sax.ContentHandler#endElement
*/
public void endElement (String uri, String localName, String qName)
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
-
-
+
+
/**
* Receive notification of character data inside an element.
*
* @see org.xml.sax.ContentHandler#characters
*/
public void characters (char ch[], int start, int length)
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
-
-
+
+
/**
* Receive notification of ignorable whitespace in element content.
*
* @see org.xml.sax.ContentHandler#ignorableWhitespace
*/
public void ignorableWhitespace (char ch[], int start, int length)
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
-
-
+
+
/**
* Receive notification of a processing instruction.
*
* @see org.xml.sax.ContentHandler#processingInstruction
*/
public void processingInstruction (String target, String data)
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
* @see org.xml.sax.ContentHandler#processingInstruction
*/
public void skippedEntity (String name)
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
-
-
-\f
+
+
+
////////////////////////////////////////////////////////////////////
// Default implementation of the ErrorHandler interface.
////////////////////////////////////////////////////////////////////
-
-
+
+
/**
* Receive notification of a parser warning.
*
* @see org.xml.sax.SAXParseException
*/
public void warning (SAXParseException e)
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
-
-
+
+
/**
* Receive notification of a recoverable parser error.
*
* @see org.xml.sax.SAXParseException
*/
public void error (SAXParseException e)
- throws SAXException
+ throws SAXException
{
- // no op
+ // no op
}
-
-
+
+
/**
* Report a fatal XML parsing error.
*
* @see org.xml.sax.SAXParseException
*/
public void fatalError (SAXParseException e)
- throws SAXException
+ throws SAXException
{
- throw e;
+ throw e;
}
-
+
}
// end of DefaultHandler.java