public class FTValList extends Hashtable
Modifier and Type | Method and Description |
---|---|
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(Object o) |
Object |
get(Object key)
Return the data regardless of type
|
FTVAL |
getVal(String key)
Get a FTVAL from a key name
|
byte[] |
getValBLOB(String key)
Get byte[] from key
|
int |
getValBLOBSize(String key)
Get the size of blob data - 0 returned if not a blob
|
int |
getValInt(String key)
Get an int value from a key
|
String |
getValString(String key)
Get a string from a key
|
Enumeration |
keys()
Thread safe way to access items keys().
|
Vector |
keysVector()
Thread safe way to access items keys().
|
int |
parse(String inputParam)
Convert a string of form a=b and c=d to an FTValList set of name/value pairs Note - will add new and/or replace existing
|
int |
parse(String inputParam, boolean bEncodeParams)
Also URL-encode each parameter
|
Object |
put(Object key, Object value)
Associates a value with a specified key.
|
Object |
remove(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(String key)
Remove a name/value pair
|
int |
setVal(String key, FTVAL val)
Set a USERDATA typed object to a key name
|
int |
setVal(String key, int type, Object data)
Set a typed object to a key name
|
int |
setValBLOB(String key, byte[] b)
Store binary data by key name
|
int |
setValBLOB(String key, byte[] b, int sz)
Store binary data by key name
|
int |
setValBLOBFile(String key, String fname)
Store binary data by key name
|
int |
setValInt(String key, int i)
Set an integer with a key
|
int |
setValString(String key, String val)
Set a string by key name
|
Enumeration |
sortedKeys()
Thread safe way to access items sorted keys().
|
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, rehash, remove, replace, replace, replaceAll, size, toString, values
public boolean equals(Object o)
public final int count()
public Enumeration keys()
public Enumeration sortedKeys()
public Enumeration alphaSortedKeys()
public Vector keysVector()
public FTVAL getVal(String key)
key
- key namepublic int setVal(String key, FTVAL val)
key
- key nameval
- value to setpublic int setVal(String key, int type, Object data)
key
- keynametype
- (one of the FTVAL enums)data
- datapublic void removeAll()
public int removeVal(String key)
key
- keynamepublic int getValInt(String key)
key
- keynamepublic int setValInt(String key, int i)
key
- key namei
- valuepublic Object remove(Object key)
public String getValString(String key)
key
- key namepublic int setValString(String key, String val)
key
- keynameval
- valuepublic byte[] getValBLOB(String key)
key
- key namepublic int getValBLOBSize(String key)
key
- key namepublic final int setValBLOBFile(String key, String fname)
key
- key namefname
- current disk file namepublic final int setValBLOB(String key, byte[] b)
key
- key nameb
- array of bytespublic final int setValBLOB(String key, byte[] b, int sz)
key
- key nameb
- array of bytessz
- sizepublic final FTValList copy()
public int parse(String inputParam)
inputParam
- input parameters data.public int parse(String inputParam, boolean bEncodeParams)
inputParam
- input parametersbEncodeParams
- encode parameters