org.LexGrid.util.file
Class CopyrightScrubber
java.lang.Object
org.LexGrid.util.file.CopyrightScrubber
public class CopyrightScrubber
- extends java.lang.Object
Field Summary |
protected static java.lang.String |
COPYRIGHT
|
protected char |
NSub
|
protected java.util.regex.Pattern |
P_body
|
protected java.util.regex.Pattern |
P_head
|
protected java.util.regex.Pattern |
P_nonGen
|
protected java.util.regex.Pattern |
P_oldAuthor
|
protected java.util.regex.Pattern |
P_oldComment
|
protected char |
RSub
|
Method Summary |
static void |
displayHelp()
Displays basic information regarding the program and its usage to
standard output. |
static void |
main(java.lang.String[] args)
Program entry point. |
protected void |
process(java.io.File root)
|
protected void |
run(java.lang.String[] args)
Runs the import utility based on the provided arguments. |
protected java.lang.String |
toMultiLine(java.lang.String s)
|
protected java.lang.String |
toSingleLine(java.lang.String s)
|
protected java.lang.String |
trimLeadingWhiteSpace(java.lang.String s)
|
protected java.lang.String |
trimTrailingWhiteSpace(java.lang.String s)
|
protected java.lang.String |
trimWhiteSpace(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
protected static java.lang.String COPYRIGHT
P_head
protected java.util.regex.Pattern P_head
P_body
protected java.util.regex.Pattern P_body
P_oldComment
protected java.util.regex.Pattern P_oldComment
P_oldAuthor
protected java.util.regex.Pattern P_oldAuthor
P_nonGen
protected java.util.regex.Pattern P_nonGen
RSub
protected char RSub
NSub
protected char NSub
CopyrightScrubber
public CopyrightScrubber()
displayHelp
public static void displayHelp()
- Displays basic information regarding the program and its usage to
standard output.
main
public static void main(java.lang.String[] args)
- Program entry point.
- Parameters:
args
- String[]
run
protected void run(java.lang.String[] args)
throws java.lang.Exception
- Runs the import utility based on the provided arguments.
- Parameters:
args
- String[]
- Throws:
java.lang.Exception
process
protected void process(java.io.File root)
throws java.io.IOException
- Throws:
java.io.IOException
toSingleLine
protected java.lang.String toSingleLine(java.lang.String s)
toMultiLine
protected java.lang.String toMultiLine(java.lang.String s)
trimWhiteSpace
protected java.lang.String trimWhiteSpace(java.lang.String s)
trimLeadingWhiteSpace
protected java.lang.String trimLeadingWhiteSpace(java.lang.String s)
trimTrailingWhiteSpace
protected java.lang.String trimTrailingWhiteSpace(java.lang.String s)