public class processList extends Object
This class will process a file where each line contains a name/value pair with the items separated by a colon. Spaces and colons may not occur within the names.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
processList.namePair
Internal class for name/value pairs.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
caseSensitive
If false (default condition),
names of pairs are processed in a case
insensitive manner and all names are converted
to lower case.
|
protected int |
debugLevel
Controls amount of diagnostic output.
|
protected Vector<processList.namePair> |
internalList |
| Constructor and Description |
|---|
processList() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDebugLevel()
Getter for debugLevel.
|
String |
getIntValue(String name) |
String |
getValue(String name) |
boolean |
isCaseSensitive()
Getter for caseSensitive.
|
void |
listPairs()
Diagnostic method for printing contents of list.
|
static void |
main(String[] args)
Test driver
|
void |
processInput(LineNumberReader input)
Parse a text file to create the name/value pairs.
|
void |
setCaseSensitive(boolean valueIn)
Setter for caseSensitive.
|
void |
setDebugLevel(int levelIn)
Setter for debug level.
|
protected boolean caseSensitive
isCaseSensitive(),
boolean;protected int debugLevel
getDebugLevel(),
setDebugLevel(int)protected Vector<processList.namePair> internalList
public processList()
public boolean isCaseSensitive()
caseSensitivepublic void setCaseSensitive(boolean valueIn)
valueIn - Value to be used for caseSensitivecaseSensitivepublic int getDebugLevel()
debugLevelpublic void setDebugLevel(int levelIn)
levelIn - Value to be used for debugLeveldebugLevelpublic void processInput(LineNumberReader input)
input - Object containing input filepublic void listPairs()
public String getIntValue(String name)
Copyright © 2017. All rights reserved.