servlet
Class OrderedProps

java.lang.Object
servlet.OrderedProps
- class OrderedProps
- extends java.lang.Object
Stores the keys and values from a file (similar to a properties file) and
can return the first value which has a key contained in its string.
File can have comment lines starting with '#" and for each line the entries are
separated by tabs and '=' char.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attVec
private java.util.Vector attVec
- Stores the Key and Values as an array of Strings
OrderedProps
OrderedProps(java.io.InputStream inputStream)
throws java.io.IOException
- Constructor.
getValue
java.lang.String getValue(java.lang.String s)
- Iterates through the Key list and returns the first value for whose
key the given string contains. Returns "unknown" if no key is contained
in the string.