Crossfire JXClient, Trunk
|
Classes | |
class | WCStatistics |
Static Public Member Functions | |
static void | main (String[] args) throws IOException |
Static Private Member Functions | |
static void | collectInFourPasses (BufferedReader reader) throws IOException |
static void | collectInOnePass (BufferedReader reader) |
static void | usage () |
Static Private Attributes | |
static final Pattern | nonWordPattern = Pattern.compile("\\W") |
static final int | READ_AHEAD_LIMIT = 100_000_000 |
WC - Prints newline, word, and character counts for each file. See the usage method for instructions and command line parameters. This sample shows usages of:
|
staticprivate |
|
staticprivate |
Definition at line 138 of file WC.java.
References WC.WCStatistics.accept(), and WC.WCStatistics.combine().
Referenced by main().
|
static |
The main method for the WC program. Run the program with an empty argument list to see possible arguments.
args | the argument list for WC |
java.io.IOException | If an input exception occurred. |
Definition at line 75 of file WC.java.
References collectInFourPasses(), collectInOnePass(), READ_AHEAD_LIMIT, and usage().
|
staticprivate |
|
staticprivate |
Definition at line 66 of file WC.java.
Referenced by WC.WCStatistics.accept().
|
staticprivate |