Crossfire JXClient, Trunk
Classes | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
CSVProcessor Class Reference
Collaboration diagram for CSVProcessor:
Collaboration graph

Classes

class  Statistics
 

Static Public Member Functions

static void main (String[] args)
 

Static Private Member Functions

static String getCell (String record, int column)
 
static int getColumnNumber (List< String > header, String name)
 
static void printUsageAndExit (String... str)
 
static void statInSeveralPasses (BufferedReader br, int column) throws IOException
 
static void verifyArgumentNumber (String[] args, int n)
 

Static Private Attributes

static final int READ_AHEAD_LIMIT = 100_000_000
 

Detailed Description

CSVProcessor is a tool for processing CSV files. There are several command-line options. Consult the printUsageAndExit method for instructions and command line parameters. This sample shows examples of the following features:

Definition at line 73 of file CSVProcessor.java.

Member Function Documentation

◆ getCell()

static String CSVProcessor.getCell ( String  record,
int  column 
)
staticprivate

Definition at line 225 of file CSVProcessor.java.

Referenced by CSVProcessor.Statistics.accept(), main(), statInSeveralPasses(), and CSVProcessor.Statistics.Statistics().

Here is the caller graph for this function:

◆ getColumnNumber()

static int CSVProcessor.getColumnNumber ( List< String >  header,
String  name 
)
staticprivate

Definition at line 217 of file CSVProcessor.java.

References name(), and printUsageAndExit().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

static void CSVProcessor.main ( String[]  args)
static

The main method for the CSVProcessor program. Run the program with an empty argument list to see possible arguments.

Parameters
argsthe argument list for CSVProcessor.

Definition at line 84 of file CSVProcessor.java.

References getCell(), getColumnNumber(), printUsageAndExit(), READ_AHEAD_LIMIT, statInSeveralPasses(), and verifyArgumentNumber().

Here is the call graph for this function:

◆ printUsageAndExit()

static void CSVProcessor.printUsageAndExit ( String...  str)
staticprivate

Definition at line 229 of file CSVProcessor.java.

Referenced by getColumnNumber(), main(), and verifyArgumentNumber().

Here is the caller graph for this function:

◆ statInSeveralPasses()

static void CSVProcessor.statInSeveralPasses ( BufferedReader  br,
int  column 
) throws IOException
staticprivate

Definition at line 186 of file CSVProcessor.java.

References getCell().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verifyArgumentNumber()

static void CSVProcessor.verifyArgumentNumber ( String[]  args,
int  n 
)
staticprivate

Definition at line 210 of file CSVProcessor.java.

References printUsageAndExit().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ READ_AHEAD_LIMIT

final int CSVProcessor.READ_AHEAD_LIMIT = 100_000_000
staticprivate

Definition at line 76 of file CSVProcessor.java.

Referenced by main().


The documentation for this class was generated from the following file: