org.gjt.universe
Class ManifestItems

java.lang.Object
  |
  +--org.gjt.universe.ManifestItems

public final class ManifestItems
extends java.lang.Object


Nested Class Summary
static class ManifestItems.KVPair
           
 
Field Summary
private  java.lang.String[] keys
           
private  int numKeys
           
private  java.lang.String[] values
           
 
Constructor Summary
ManifestItems()
           
 
Method Summary
 void add(java.lang.String key, java.lang.String val)
          add a key/value pair to the manifest.
 java.lang.String findValue(java.lang.String value)
          find *first* value that matches a given a key.
 ManifestItems.KVPair[] getKVPairs()
          Lists all keys and values.
private  void grow()
          Ensures that the array is large enough to hold the manifest data.
 boolean read(java.io.InputStream is)
          read the manifest data from the input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keys

private java.lang.String[] keys

values

private java.lang.String[] values

numKeys

private int numKeys
Constructor Detail

ManifestItems

public ManifestItems()
Method Detail

findValue

public java.lang.String findValue(java.lang.String value)
find *first* value that matches a given a key. Case insensitive.


getKVPairs

public ManifestItems.KVPair[] getKVPairs()
Lists all keys and values.


read

public boolean read(java.io.InputStream is)
             throws java.io.IOException
read the manifest data from the input stream. Returs 'true' if the file was read completely. Automatically parses the manifest and extracts key/value pairs.

java.io.IOException

add

public void add(java.lang.String key,
                java.lang.String val)
add a key/value pair to the manifest.


grow

private final void grow()
Ensures that the array is large enough to hold the manifest data.



Copyright © 2001 Universe Dev Team All Rights Reserved.