|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.pipeline.stage.BaseStage org.apache.commons.pipeline.stage.FileFinderStage
public class FileFinderStage
This Stage
is used
to recursively find (non-directory) files that match the specified regex.
File elements in the stage's queue will be recursively searched with the resulting File objects placed on the subsequent stage's queue.
Field Summary |
---|
Fields inherited from class org.apache.commons.pipeline.stage.BaseStage |
---|
context |
Constructor Summary | |
---|---|
FileFinderStage()
Creates a new instance of FileFinder |
Method Summary | |
---|---|
String |
getFilePattern()
Getter for property filePattern. |
void |
preprocess()
Precompiles the regex pattern for matching against filenames |
void |
process(Object obj)
This method inspects a File object to determine if it matches this FileFinder's filePattern property. |
void |
setFilePattern(String pattern)
Setter for property filePattern. |
Methods inherited from class org.apache.commons.pipeline.stage.BaseStage |
---|
emit, emit, init, postprocess, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileFinderStage()
Method Detail |
---|
public void preprocess() throws StageException
preprocess
in interface Stage
preprocess
in class BaseStage
StageException
- an Exception thrown by an overriding implementation should
be wrapped in a StageException
Stage.preprocess()
public void process(Object obj)
process
in interface Stage
process
in class BaseStage
obj
- Object to be passed to downstream pipeline.public String getFilePattern()
public void setFilePattern(String pattern)
pattern
- Value of property filePattern.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |