001package com.hfg.xml.parser; 002 003import org.xml.sax.ContentHandler; 004import org.xml.sax.Locator; 005import org.xml.sax.SAXException; 006import org.xml.sax.Attributes; 007 008//------------------------------------------------------------------------------ 009/** 010 * Abstract ContentHandler stub class - override the methods you need. 011 * 012 * @author J. Alex Taylor, hairyfatguy.com 013 */ 014//------------------------------------------------------------------------------ 015// com.hfg XML/HTML Coding Library 016// 017// This library is free software; you can redistribute it and/or 018// modify it under the terms of the GNU Lesser General Public 019// License as published by the Free Software Foundation; either 020// version 2.1 of the License, or (at your option) any later version. 021// 022// This library is distributed in the hope that it will be useful, 023// but WITHOUT ANY WARRANTY; without even the implied warranty of 024// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 025// Lesser General Public License for more details. 026// 027// You should have received a copy of the GNU Lesser General Public 028// License along with this library; if not, write to the Free Software 029// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 030// 031// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com 032// jataylor@hairyfatguy.com 033//------------------------------------------------------------------------------ 034 035public abstract class AbstractContentHandler implements ContentHandler 036{ 037 //----------------------------------------------------------------------- 038 public void setDocumentLocator(Locator locator) 039 { 040 } 041 042 //----------------------------------------------------------------------- 043 public void startDocument() throws SAXException 044 { 045 } 046 047 //----------------------------------------------------------------------- 048 public void endDocument() throws SAXException 049 { 050 } 051 052 //----------------------------------------------------------------------- 053 public void startPrefixMapping(String string, String string1) throws SAXException 054 { 055 } 056 057 //----------------------------------------------------------------------- 058 public void endPrefixMapping(String string) throws SAXException 059 { 060 } 061 062 //----------------------------------------------------------------------- 063 public void startElement(String inURI, String inLocalName, String inName, Attributes inAttributes) 064 { 065 } 066 067 //----------------------------------------------------------------------- 068 public void endElement(String inURI, String inLocalName, String inName) 069 { 070 } 071 072 //----------------------------------------------------------------------- 073 public void characters(char[] inChars, int offset, int length) 074 { 075 } 076 077 //----------------------------------------------------------------------- 078 public void ignorableWhitespace(char[] chars, int i, int i1) throws SAXException 079 { 080 } 081 082 //----------------------------------------------------------------------- 083 public void processingInstruction(String string, String string1) throws SAXException 084 { 085 } 086 087 //----------------------------------------------------------------------- 088 public void skippedEntity(String string) throws SAXException 089 { 090 } 091 092}