Package org.apache.tika.example
Class RecentFiles
- java.lang.Object
-
- org.apache.tika.example.RecentFiles
-
public class RecentFiles extends Object
Builds on top of the LuceneIndexer and the Metadata discussions in Chapter 6 to output an RSS (or RDF) feed of files crawled by the LuceneIndexer within the last N minutes.
-
-
Constructor Summary
Constructors Constructor Description RecentFiles()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateRSS(Path indexFile)
String
getRSSFooters()
String
getRSSHeaders()
String
getRSSItem(org.apache.lucene.document.Document doc)
-
-
-
Method Detail
-
generateRSS
public String generateRSS(Path indexFile) throws org.apache.lucene.index.CorruptIndexException, IOException
- Throws:
org.apache.lucene.index.CorruptIndexException
IOException
-
getRSSItem
public String getRSSItem(org.apache.lucene.document.Document doc)
-
getRSSHeaders
public String getRSSHeaders()
-
getRSSFooters
public String getRSSFooters()
-
-