2009-07-09 22:13:11 +02:00
|
|
|
// Scraper.java
|
2005-04-07 21:19:42 +02:00
|
|
|
// ---------------------------
|
2008-07-20 19:14:51 +02:00
|
|
|
// (C) by Michael Peter Christen; mc@yacy.net
|
2005-04-07 21:19:42 +02:00
|
|
|
// first published on http://www.anomic.de
|
|
|
|
// Frankfurt, Germany, 2004
|
2009-07-09 22:13:11 +02:00
|
|
|
//
|
|
|
|
// $LastChangedDate$
|
|
|
|
// $LastChangedRevision$
|
|
|
|
// $LastChangedBy$
|
2005-04-07 21:19:42 +02:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
2009-10-18 02:53:43 +02:00
|
|
|
package net.yacy.document.parser.html;
|
2005-04-07 21:19:42 +02:00
|
|
|
|
2005-05-05 07:32:19 +02:00
|
|
|
import java.util.Properties;
|
2005-04-07 21:19:42 +02:00
|
|
|
|
2009-07-08 23:48:08 +02:00
|
|
|
public interface Scraper {
|
2005-04-07 21:19:42 +02:00
|
|
|
|
|
|
|
public boolean isTag0(String tag);
|
|
|
|
|
|
|
|
public boolean isTag1(String tag);
|
|
|
|
|
2006-10-09 03:24:01 +02:00
|
|
|
public void scrapeText(char[] text, String insideTag);
|
2005-04-07 21:19:42 +02:00
|
|
|
|
|
|
|
public void scrapeTag0(String tagname, Properties tagopts);
|
|
|
|
|
2006-09-18 12:12:11 +02:00
|
|
|
public void scrapeTag1(String tagname, Properties tagopts, char[] text);
|
2005-06-16 20:31:28 +02:00
|
|
|
|
|
|
|
public void close();
|
2006-09-18 17:36:04 +02:00
|
|
|
|
2009-07-08 23:48:08 +02:00
|
|
|
public void registerHtmlFilterEventListener(ScraperListener listener);
|
2006-09-18 17:36:04 +02:00
|
|
|
|
2009-07-08 23:48:08 +02:00
|
|
|
public void deregisterHtmlFilterEventListener(ScraperListener listener);
|
2005-04-07 21:19:42 +02:00
|
|
|
}
|