ariba.util.io
Class FirstTokenKeyCSVConsumer
java.lang.Object
ariba.util.io.FirstTokenKeyCSVConsumer
- All Implemented Interfaces:
- CSVConsumer
public class FirstTokenKeyCSVConsumer
- extends Object
- implements CSVConsumer
The FirstTokenKeyCSVConsumer stores the first token as the key
and the vector of tokens as the value in a map
specified during the construction of the class.
|
Method Summary |
void |
consumeLineOfTokens(String path,
int lineNumber,
List line)
Called once per CSV line read. |
List |
get(String key,
List defaultValue)
Get a List representing a line read in from the file, given
a key (the first token in the line). |
FirstTokenKeyCSVConsumer
public FirstTokenKeyCSVConsumer()
consumeLineOfTokens
public void consumeLineOfTokens(String path,
int lineNumber,
List line)
- Called once per CSV line read.
- Specified by:
consumeLineOfTokens in interface CSVConsumer
- Parameters:
path - the CSV source filelineNumber - the current line being reported, 1-based.line - a List of tokens parsed from a one line in the file
get
public List get(String key,
List defaultValue)
- Get a List representing a line read in from the file, given
a key (the first token in the line).
- Parameters:
key - the key to find a line read from the filedefaultValue - return this List if the key is not found.
AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.