|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSampleExtractor
public class SampleExtractor
Extracts information from a File Tree (Directory) in a format that can be added to an Index.
Field Summary | |
---|---|
protected org.apache.log4j.Logger |
logger
Logger for this class and subclasses |
private java.lang.String |
type
Extractor type |
Constructor Summary | |
---|---|
SampleExtractor()
|
Method Summary | |
---|---|
int |
canHandle(INewInformation info)
How well the plugin thinks it can handle a new piece of information |
void |
convert(INewInformation info)
Comvert the tree information into a list of documents |
java.lang.String[] |
getListExtensions()
Return the list of supported extensions |
java.lang.String |
getOriginalUri()
The original place where we got this data |
java.lang.String |
getType()
Get the extractor type |
void |
onLoad()
Carry out any initiation tasks |
void |
setType(java.lang.String type)
Set the extractor type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.log4j.Logger logger
private java.lang.String type
Constructor Detail |
---|
public SampleExtractor()
Method Detail |
---|
public java.lang.String getOriginalUri()
getOriginalUri
in interface IDataExtractor
public void onLoad()
onLoad
in interface IPlugin
public int canHandle(INewInformation info)
canHandle
in interface IDataExtractor
info
-
public void convert(INewInformation info) throws RpException
convert
in interface IDataExtractor
info
- Information to be converted
RpException
- If an error occur in xml processingpublic java.lang.String[] getListExtensions()
getListExtensions
in interface IDataExtractor
public java.lang.String getType()
getType
in interface IDataExtractor
public void setType(java.lang.String type)
type
- Extractor type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |