Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

servlet
Class OrderedProps  view OrderedProps download OrderedProps.java

java.lang.Object
  extended byservlet.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.


Field Summary
private  java.util.Vector attVec
          Stores the Key and Values as an array of Strings
 
Constructor Summary
(package private) OrderedProps(java.io.InputStream inputStream)
          Constructor.
 
Method Summary
(package private)  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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attVec

private java.util.Vector attVec
Stores the Key and Values as an array of Strings

Constructor Detail

OrderedProps

OrderedProps(java.io.InputStream inputStream)
       throws java.io.IOException
Constructor.

Method Detail

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.