public class Grep extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
field |
protected List<String> |
files |
protected Integer |
group |
protected boolean |
invert |
protected Pattern |
regex |
| Modifier | Constructor and Description |
|---|---|
protected |
Grep() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFile(String path) |
protected void |
doTheGrepThing() |
protected Pattern |
getRegex() |
protected void |
grep(BufferedReader reader,
String prefix) |
static void |
main(String[] args) |
protected static Grep |
parseArguments(String[] args) |
protected static void |
printHelp(PrintStream out) |
protected void |
setField(Integer field) |
protected void |
setGroup(Integer group) |
protected void |
setInvertMatch(boolean invert) |
protected void |
setRegex(Pattern regex) |
protected boolean invert
protected Pattern regex
protected Integer field
protected Integer group
protected static Grep parseArguments(String[] args) throws Exception
Exceptionprotected static void printHelp(PrintStream out)
protected void setField(Integer field)
protected void setInvertMatch(boolean invert)
protected void setGroup(Integer group)
protected void setRegex(Pattern regex)
protected void addFile(String path)
protected Pattern getRegex()
protected void grep(BufferedReader reader, String prefix) throws IOException
IOExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.