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