|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.io.GrepLineResult
public class GrepLineResult
A Java bean to contain the result of a single line match for
from the GrepJob
Constructor Summary | |
---|---|
GrepLineResult(File file,
int lineNumber,
String line,
String match)
Constructor for a result from a file. |
|
GrepLineResult(int lineNumber,
String line,
String match)
Constructor for a result not from a file. |
Method Summary | |
---|---|
File |
getFile()
The file containing the match, if the match was from a file. |
String |
getLine()
The line of text containing the match. |
int |
getLineNumber()
The line number in the file or input stream the match was on. |
String |
getMatch()
The text section of the line that provided the match. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrepLineResult(int lineNumber, String line, String match)
lineNumber
- line
- match
- public GrepLineResult(File file, int lineNumber, String line, String match)
lineNumber
- line
- match
- Method Detail |
---|
public File getFile()
public int getLineNumber()
public String getLine()
public String getMatch()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |