public class GrepJob extends Object implements Callable<Integer>
<oddjob> <job> <grep ignoreCase="true" lineNumbers="true" text="red"> <in> <buffer>5 green cars. 2 red buses. 1 RED lorry. </buffer> </in> <out> <stdout/> </out> </grep> </job> </oddjob>
Constructor and Description |
---|
GrepJob() |
Modifier and Type | Method and Description |
---|---|
Integer |
call() |
File[] |
getFiles() |
InputStream |
getIn() |
int |
getMatchedLineCount() |
String |
getName() |
OutputStream |
getOut() |
Collection<? super GrepLineResult> |
getResults() |
String |
getText() |
boolean |
isIgnoreCase() |
boolean |
isInvert() |
boolean |
isLineNumbers() |
boolean |
isNoFilename() |
boolean |
isNoPath() |
boolean |
isRegexp() |
boolean |
isWithFilename() |
void |
setFiles(File[] files) |
void |
setIgnoreCase(boolean ignoreCase) |
void |
setIn(InputStream in) |
void |
setInvert(boolean invert) |
void |
setLineNumbers(boolean lineNumbers) |
void |
setName(String name) |
void |
setNoFilename(boolean noFileName) |
void |
setNoPath(boolean noPath) |
void |
setOut(OutputStream out) |
void |
setRegexp(boolean regexp) |
void |
setResults(Collection<? super GrepLineResult> results) |
void |
setText(String text) |
void |
setWithFilename(boolean withFilename) |
String |
toString() |
public Integer call() throws IOException
call
in interface Callable<Integer>
IOException
public String getName()
public void setName(String name)
public File[] getFiles()
public void setFiles(File[] files)
public InputStream getIn()
public void setIn(InputStream in)
public String getText()
public void setText(String text)
public boolean isRegexp()
public void setRegexp(boolean regexp)
public OutputStream getOut()
public void setOut(OutputStream out)
public Collection<? super GrepLineResult> getResults()
public void setResults(Collection<? super GrepLineResult> results)
public int getMatchedLineCount()
public boolean isLineNumbers()
public void setLineNumbers(boolean lineNumbers)
public boolean isNoPath()
public void setNoPath(boolean noPath)
public boolean isNoFilename()
public void setNoFilename(boolean noFileName)
public boolean isWithFilename()
public void setWithFilename(boolean withFilename)
public boolean isIgnoreCase()
public void setIgnoreCase(boolean ignoreCase)
public boolean isInvert()
public void setInvert(boolean invert)