ariba.util.io
Class CSVReaderSelect

java.lang.Object
  extended by ariba.util.io.CSVReaderSelect
All Implemented Interfaces:
CSVConsumer

public class CSVReaderSelect
extends java.lang.Object
implements CSVConsumer

Read's a CSV file and based on command line arguments, only prints the columns requested. A sort of "select foo, bar from file". A utility class used by the build.


Field Summary
static java.lang.String ClassName
          Our classname, for the usage message.
 
Method Summary
 void consumeLineOfTokens(java.lang.String path, int lineNumber, java.util.List line)
          Called once per CSV line read.
static void main(java.lang.String[] args)
          Make a CSVReaderSelect object so it can implement CSVConsumer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ClassName

public static final java.lang.String ClassName
Our classname, for the usage message.

See Also:
Constant Field Values
Method Detail

main

public static void main(java.lang.String[] args)
Make a CSVReaderSelect object so it can implement CSVConsumer


consumeLineOfTokens

public void consumeLineOfTokens(java.lang.String path,
                                int lineNumber,
                                java.util.List line)
Called once per CSV line read.

Specified by:
consumeLineOfTokens in interface CSVConsumer
Parameters:
path - - the CSV source file
lineNumber - - the current line being reported, 1-based.
line - - a List of tokens parsed from a one line in the file


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.