|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable
COM.FutureTense.Interfaces.FTValList
public class FTValList
ContentServer interfaces
Yes, this object isn't an interface but it helps.
$Revision: 41 $
Constructor Summary | |
---|---|
FTValList() |
|
FTValList(int sz) |
Method Summary | |
---|---|
java.util.Enumeration |
alphaSortedKeys() Thread safe way to access items sorted keys(). |
FTValList |
copy() Create a new FTValList which is a copy of this list. |
int |
count() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(java.lang.Object key) Return the data regardless of type |
FTVAL |
getVal(java.lang.String key) Get a FTVAL from a key name |
byte[] |
getValBLOB(java.lang.String key) Get byte[] from key |
int |
getValBLOBSize(java.lang.String key) Get the size of blob data - 0 returned if not a blob |
int |
getValInt(java.lang.String key) Get an int value from a key |
java.lang.String |
getValString(java.lang.String key) Get a string from a key |
java.util.Enumeration |
keys() Thread safe way to access items keys(). |
java.util.Vector |
keysVector() Thread safe way to access items keys(). |
int |
parse(java.lang.String inputParam) Convert a string of form "a=b&c=d&..." to an FTValList set of name/value pairs Note - will add new and/or replace existing data. |
int |
parse(java.lang.String inputParam, boolean bEncodeParams) Also URL-encode each parameter |
java.lang.Object |
put(java.lang.Object key, java.lang.Object value) Associates a value with a specified key. |
java.lang.Object |
remove(java.lang.Object key) Remove an object from the map and return the old object or null |
void |
removeAll() Remove all items in this list |
int |
removeVal(java.lang.String key) Remove a name/value pair |
int |
setVal(java.lang.String key, FTVAL val) Set a USERDATA typed object to a key name |
int |
setVal(java.lang.String key, int type, java.lang.Object data) Set a typed object to a key name |
int |
setValBLOB(java.lang.String key, byte[] b) Store binary data by key name |
int |
setValBLOB(java.lang.String key, byte[] b, int sz) Store binary data by key name |
int |
setValBLOBFile(java.lang.String key, java.lang.String fname) Store binary data by key name |
int |
setValInt(java.lang.String key, int i) Set an integer with a key |
int |
setValString(java.lang.String key, java.lang.String val) Set a string by key name |
java.util.Enumeration |
sortedKeys() Thread safe way to access items sorted keys(). |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, hashCode, isEmpty, keySet, putAll, rehash, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FTValList()
public FTValList(int sz)
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map
equals
in class java.util.Hashtable
public final int count()
public java.util.Enumeration keys()
keys
in class java.util.Hashtable
public java.util.Enumeration sortedKeys()
public java.util.Enumeration alphaSortedKeys()
public java.util.Vector keysVector()
public FTVAL getVal(java.lang.String key)
key
-public final java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
put
in class java.util.Hashtable
key
- key with which the value is to be associated.value
- value to be associated with the key.public int setVal(java.lang.String key, FTVAL val)
key
- keynameval
- value to setUseful when the type is unknown
public int setVal(java.lang.String key, int type, java.lang.Object data)
key
- keynametype
- (one of the FTVAL enums)data
-public void removeAll()
public int removeVal(java.lang.String key)
key
- keynamepublic int getValInt(java.lang.String key)
key
- keynamepublic int setValInt(java.lang.String key, int i)
key
- keynamei
- valuepublic java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
get
in class java.util.Hashtable
key
-public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
remove
in class java.util.Hashtable
key
- to removepublic java.lang.String getValString(java.lang.String key)
key
-public int setValString(java.lang.String key, java.lang.String val)
key
- keynameval
- valuepublic byte[] getValBLOB(java.lang.String key)
key
- keynamepublic int getValBLOBSize(java.lang.String key)
key
- keypublic final int setValBLOBFile(java.lang.String key, java.lang.String fname)
key
- keynamefname
- current disk file namepublic final int setValBLOB(java.lang.String key, byte[] b)
key
- keynameb
- array of bytespublic final int setValBLOB(java.lang.String key, byte[] b, int sz)
key
- keynameb
- array of bytessz
- sizepublic final FTValList copy()
public int parse(java.lang.String inputParam)
public int parse(java.lang.String inputParam, boolean bEncodeParams)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.