public class GrepLineResult extends Object implements Serializable
GrepJob
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public GrepLineResult(int lineNumber, String line, String match)
lineNumber
- line
- match
- public File getFile()
public int getLineNumber()
public String getLine()
public String getMatch()