- public class kventry
- extends klentry
A list entry which represents a key:value pair.
value- The entry's value.
kventry()
- Creates a new entry whose key and value are both "".
kventry(String, String)
- Creates a new entry with the specified key and value.
kventry(String, vqis)
- Creates an unattached entry with the specified key and reads
its value from the specified input stream.
kventry(vqis)
- Creates an unattached entry and reads its key and
value from the specified input stream.
kill()
- Kills the entry.
save(vqos)
- Writes the entry to the specified output stream in
vqServer .cfg format.
value
public java.lang.String value
The entry's value.
kventry
public kventry()
Creates a new entry whose key and value are both "".
kventry
public kventry(java.lang.String theKey,
java.lang.String theValue)
Creates a new entry with the specified key and value.
- Parameters:
theKey
- the entry's key
theValue
- the entry's value
kventry
public kventry(vqis is) throws java.io.IOException
Creates an unattached entry and reads its key and
value from the specified input stream.
Used when reading a list of entries from a file in vqServer .cfg
file format.
- Parameters:
is
- the input stream to read the entry from
kventry
public kventry(java.lang.String theKey,
vqis is) throws java.io.IOException
Creates an unattached entry with the specified key and reads
its value from the specified input stream.
Used when reading a list of entries from a file in vqServer .cfg
file format.
- Parameters:
theKey
- the key of the new entry
is
- the input stream to read the entry's value from
kill
public void kill()
Kills the entry.
Warning: do not invoke this method if the entry is a member of a list.
- Overrides:
- kill in class klentry
save
public void save(vqos os) throws java.io.IOException
Writes the entry to the specified output stream in
vqServer .cfg format.
- Parameters:
os
- the output stream to write the entry to
- Overrides:
- save in class klentry