org.apache.lenya.lucene
Class HTMLDocument

java.lang.Object
  extended by org.apache.lenya.lucene.HTMLDocument

public class HTMLDocument
extends java.lang.Object

A utility for making Lucene Documents for HTML documents.


Method Summary
static org.apache.lucene.document.Document Document(java.io.File f, java.io.File htdocsDumpDir)
          DOCUMENT ME!
static java.lang.String uid(java.io.File f, java.io.File htdocsDumpDir)
          Append path and date into a string in such a way that lexicographic sorting gives the same results as a walk of the file hierarchy.
static java.lang.String uid2url(java.lang.String uid)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

uid

public static java.lang.String uid(java.io.File f,
                                   java.io.File htdocsDumpDir)
Append path and date into a string in such a way that lexicographic sorting gives the same results as a walk of the file hierarchy. Thus null () is used both to separate directory components and to separate the path from the date.

Parameters:
f - DOCUMENT ME!
htdocsDumpDir - DOCUMENT ME!
Returns:
DOCUMENT ME!

uid2url

public static java.lang.String uid2url(java.lang.String uid)
DOCUMENT ME!

Parameters:
uid - DOCUMENT ME!
Returns:
DOCUMENT ME!

Document

public static org.apache.lucene.document.Document Document(java.io.File f,
                                                           java.io.File htdocsDumpDir)
                                                    throws java.io.IOException,
                                                           java.lang.InterruptedException
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!
htdocsDumpDir - DOCUMENT ME!
Returns:
org.apache.lucene.document.Document
Throws:
java.io.IOException - DOCUMENT ME!
java.lang.InterruptedException - DOCUMENT ME!


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.