KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > searcher > HitContent


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 JavaDoc;
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 JavaDoc;
15
16   /** Returns the ParseData of a hit document. */
17   ParseData getParseData(HitDetails details) throws IOException JavaDoc;
18
19   /** Returns the ParseText of a hit document. */
20   ParseText getParseText(HitDetails details) throws IOException JavaDoc;
21
22   /** Returns the anchors of a hit document. */
23   String JavaDoc[] getAnchors(HitDetails details) throws IOException JavaDoc;
24
25   /** Returns the anchors of a hit document. */
26   long getFetchDate(HitDetails details) throws IOException JavaDoc;
27
28 }
29
Popular Tags