KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > lenya > search > crawler > ContentHandler


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */

17
18 /* $Id: ContentHandler.java 42598 2004-03-01 16:18:28Z gregor $ */
19
20 package org.apache.lenya.search.crawler;
21
22 import java.io.InputStream JavaDoc;
23 import java.util.List JavaDoc;
24
25
26 /**
27  * DOCUMENT ME!
28  */

29 public interface ContentHandler {
30     /**
31      * Return author
32      *
33      * @return DOCUMENT ME!
34      */

35     String JavaDoc getAuthor();
36
37     /**
38      * Return categories (from META tags)
39      *
40      * @return DOCUMENT ME!
41      */

42     String JavaDoc getCategories();
43
44     /**
45      * Return contents
46      *
47      * @return DOCUMENT ME!
48      */

49     String JavaDoc getContents();
50
51     /**
52      * Return description (from META tags)
53      *
54      * @return DOCUMENT ME!
55      */

56     String JavaDoc getDescription();
57
58     /**
59      * Return META HREF
60      *
61      * @return DOCUMENT ME!
62      */

63     String JavaDoc getHREF();
64
65     /**
66      * Return keywords (from META tags)
67      *
68      * @return DOCUMENT ME!
69      */

70     String JavaDoc getKeywords();
71
72     /**
73      * Return links
74      *
75      * @return DOCUMENT ME!
76      */

77     List JavaDoc getLinks();
78
79     /**
80      * Return published date (from META tag)
81      *
82      * @return DOCUMENT ME!
83      */

84     long getPublished();
85
86     /**
87      * Return description (from META tags)
88      *
89      * @return DOCUMENT ME!
90      */

91     boolean getRobotFollow();
92
93     /**
94      * Return description (from META tags)
95      *
96      * @return DOCUMENT ME!
97      */

98     boolean getRobotIndex();
99
100     /**
101      * Return page title
102      *
103      * @return DOCUMENT ME!
104      */

105     String JavaDoc getTitle();
106
107     /**
108      * Parse Content.
109      *
110      * @param in DOCUMENT ME!
111      */

112     void parse(InputStream JavaDoc in);
113 }
114
Popular Tags