1 /* Copyright (c) 2003 The Nutch Organization. All rights reserved. */ 2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */ 3 4 package net.nutch.searcher; 5 6 import java.io.IOException; 7 8 import net.nutch.parse.ParseData; 9 import net.nutch.parse.ParseText; 10 11 /** Service that returns the content of a hit. */ 12 public interface HitContent { 13 /** Returns the content of a hit document. */ 14 byte[] getContent(HitDetails details) throws IOException; 15 16 /** Returns the ParseData of a hit document. */ 17 ParseData getParseData(HitDetails details) throws IOException; 18 19 /** Returns the ParseText of a hit document. */ 20 ParseText getParseText(HitDetails details) throws IOException; 21 22 /** Returns the anchors of a hit document. */ 23 String[] getAnchors(HitDetails details) throws IOException; 24 25 /** Returns the anchors of a hit document. */ 26 long getFetchDate(HitDetails details) throws IOException; 27 28 } 29