public class OurHandler extends HandlerBase { //subclassing HandlerBase public void startDocument () { //our implementation of the method, overriding HandlerBase } public void endDocument () { //our implementation of the method, overriding HandlerBase } public void startElement (String name, AttributeList atts) { //our implementation of the method, overriding HandlerBase } public void endElement (String name) { //our implementation of the method, overriding HandlerBase } public void characters (char ch[], int start, int length) { //our implementation of the method, overriding HandlerBase } }