|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.firstpartners.rp.back.extractor.FileTreeDataExtractor
public class FileTreeDataExtractor
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 int |
maxFileSize
Maxim process document size |
private java.lang.String |
type
Extractor type |
Constructor Summary | |
---|---|
FileTreeDataExtractor()
|
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 |
int |
getMaxFileSize()
Get the maxim file size which can be proces |
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 |
setMaxFileSize(int maxFileSize)
Set the maxim file size which can be process |
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
private int maxFileSize
Constructor Detail |
---|
public FileTreeDataExtractor()
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 int getMaxFileSize()
public void setMaxFileSize(int maxFileSize)
maxFileSize
- Maxim file size allowed.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 |