public class GrepLineResult
extends java.lang.Object
implements java.io.Serializable
GrepJob
Constructor and Description |
---|
GrepLineResult(java.io.File file,
int lineNumber,
java.lang.String line,
java.lang.String match)
Constructor for a result from a file.
|
GrepLineResult(int lineNumber,
java.lang.String line,
java.lang.String match)
Constructor for a result not from a file.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile()
The file containing the match, if the match was from a file.
|
java.lang.String |
getLine()
The line of text containing the match.
|
int |
getLineNumber()
The line number in the file or input stream the match was on.
|
java.lang.String |
getMatch()
The text section of the line that provided the match.
|
public GrepLineResult(int lineNumber, java.lang.String line, java.lang.String match)
lineNumber
- line
- match
- public GrepLineResult(java.io.File file, int lineNumber, java.lang.String line, java.lang.String match)
lineNumber
- line
- match
- public java.io.File getFile()
public int getLineNumber()
public java.lang.String getLine()
public java.lang.String getMatch()