|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.gumshoe.indexer.ContentReader
public abstract class ContentReader
Field Summary | |
---|---|
static java.lang.String |
CONTENTS
|
static java.lang.String |
FILECATEGORY
|
static java.lang.String |
FILENAME
|
static java.lang.String |
MODIFIED
|
Constructor Summary | |
---|---|
ContentReader()
|
Method Summary | |
---|---|
protected void |
addDefaultFields(java.io.File f,
org.apache.lucene.document.Document doc,
java.lang.String category)
Convenience method, adds default fields to index entry |
abstract java.lang.String |
getCategory()
Category for this reader. |
protected java.io.Reader |
getContentFromXML(java.io.Reader input)
Convenience method to process XML content |
abstract org.apache.lucene.document.Document |
getDocument(java.io.File f)
Generate index entry for file |
abstract java.util.List |
getSupportedExtensions()
List extensions supported by this reader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MODIFIED
public static final java.lang.String FILENAME
public static final java.lang.String FILECATEGORY
public static final java.lang.String CONTENTS
Constructor Detail |
---|
public ContentReader()
Method Detail |
---|
public abstract org.apache.lucene.document.Document getDocument(java.io.File f) throws java.lang.Exception
f
- file to be indexed
java.lang.Exception
public abstract java.util.List getSupportedExtensions()
public abstract java.lang.String getCategory()
protected void addDefaultFields(java.io.File f, org.apache.lucene.document.Document doc, java.lang.String category) throws java.io.IOException
f
- file to be indexeddoc
- index entry
java.io.IOException
protected java.io.Reader getContentFromXML(java.io.Reader input) throws java.io.IOException, org.xml.sax.SAXException, java.io.FileNotFoundException
input
- an XML reader
java.io.IOException
org.xml.sax.SAXException
java.io.FileNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |