- public class klentry
- extends java.lang.Object
An entry in a kllist. Many of vqServer's internal objects
extend this class.
- See Also:
- kllist
key- A string which identifies the entry.
klentry()
- Creates an unattached entry whose key is "".
klentry(String)
- Creates an unattached entry with the specified key.
klentry(String, vqis)
- Creates an unattached entry with the specified key and reads and discards
any data in the specified input stream up to and including the end of the current field or block.
kill()
- Kills the entry.
next()
- Returns the next entry in the list or null if the entry is the
last entry in the list or is not in a list.
prev()
- Returns the previous entry in the list or null if the entry is the
first entry in the list or is not in a list.
save(vqos)
- Writes the entry to the output stream specified in vqServer .cfg
file format.
key
public java.lang.String key
A string which identifies the entry. Warning: most descendants
of klentry in the vq.server package attach a special meaning to this
property. It should not be changed. It is exposed for efficiency and compatibility
reasons.
klentry
public klentry()
Creates an unattached entry whose key is "".
klentry
public klentry(java.lang.String theKey)
Creates an unattached entry with the specified key.
- Parameters:
theKey
- the key of the new entry
klentry
public klentry(java.lang.String theKey,
vqis is) throws java.io.IOException
Creates an unattached entry with the specified key and reads and discards
any data in the specified input stream up to and including the end of the current field or block.
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 the entry is being read from
kill
public void kill()
Kills the entry.
Warning: do not invoke this method if
the entry is a member of a list.
save
public void save(vqos os) throws java.io.IOException
Writes the entry to the output stream specified in vqServer .cfg
file format.
- Parameters:
os
- the output stream to write the entry to
next
public klentry next()
Returns the next entry in the list or null if the entry is the
last entry in the list or is not in a list.
- Returns:
- the next entry in the list
prev
public klentry prev()
Returns the previous entry in the list or null if the entry is the
first entry in the list or is not in a list.
- Returns:
- the previous entry in the list