org.gjt.universe
Class ManifestItems
java.lang.Object
|
+--org.gjt.universe.ManifestItems
- public final class ManifestItems
- extends java.lang.Object
Field Summary |
private java.lang.String[] |
keys
|
private int |
numKeys
|
private java.lang.String[] |
values
|
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 |
keys
private java.lang.String[] keys
values
private java.lang.String[] values
numKeys
private int numKeys
ManifestItems
public ManifestItems()
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.