1 // HTMLParser Library $Name: v1_5_20050313 $ - A java-based parser for HTML 2 // http://sourceforge.org/projects/htmlparser 3 // Copyright (C) 2004 Claude Duguay 4 // 5 // Revision Control Information 6 // 7 // $Source: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/util/ParserFeedback.java,v $ 8 // $Author: derrickoswald $ 9 // $Date: 2004/01/02 16:24:58 $ 10 // $Revision: 1.30 $ 11 // 12 // This library is free software; you can redistribute it and/or 13 // modify it under the terms of the GNU Lesser General Public 14 // License as published by the Free Software Foundation; either 15 // version 2.1 of the License, or (at your option) any later version. 16 // 17 // This library is distributed in the hope that it will be useful, 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 // Lesser General Public License for more details. 21 // 22 // You should have received a copy of the GNU Lesser General Public 23 // License along with this library; if not, write to the Free Software 24 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 // 26 27 package org.htmlparser.util; 28 29 /** 30 * Interface for providing feedback without forcing the output 31 * destination to be predefined. A default implementation is 32 * provided to output events to the console but alternate 33 * implementations that log, watch for specific messages, etc. 34 * are also possible. 35 * 36 * @see DefaultParserFeedback 37 * @see FeedbackManager 38 **/ 39 public interface ParserFeedback 40 { 41 public void info(String message); 42 public void warning(String message); 43 public void error(String message, ParserException e); 44 } 45 46