|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.ConfigurableProcessor
de.fu_berlin.ties.DirectoryProcessor
Abstract base class for a Processor
that operates
on the contents of directories.
Constructor Summary | |
DirectoryProcessor(FileFilter filter,
TiesConfiguration conf)
Creates a new instance. |
Method Summary | |
void |
process(File directory)
Processes the contents of a directory. |
abstract void |
process(File[] files,
ContextMap context)
Processes an array of files. |
void |
process(String inputName)
Processes an input argument that must specify a directory. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class de.fu_berlin.ties.ConfigurableProcessor |
getConfig |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DirectoryProcessor(FileFilter filter, TiesConfiguration conf)
filter
- the filter used to decide which files to acceptconf
- used to configure this instance; if null
,
the standard configuration is usedMethod Detail |
public abstract void process(File[] files, ContextMap context) throws IOException, ProcessingException
files
- the array of files to processcontext
- a map of objects that are made available for processing;
will be empty when called from the implemented process
methods in this class
IOException
- if an I/O error occurs
ProcessingException
- if an error occurs during processingpublic final void process(File directory) throws IOException, ProcessingException
directory
- the the directory to process
IOException
- if an I/O error occurs
ProcessingException
- if an error occurs during processingpublic final void process(String inputName) throws IOException, ProcessingException
inputName
- the name of the directory to process
IOException
- if an I/O error occurs
ProcessingException
- if an error occurs during processingpublic String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |