vqServer API Class vq.utils.kventry

java.lang.Object
    |
    +----vq.utils.klentry
            |
            +----vq.utils.kventry
Contents
Package index
Package
API index

public class kventry
extends klentry
A list entry which represents a key:value pair.


Variable Index

 o value
The entry's value.

Constructor Index

 o kventry()
Creates a new entry whose key and value are both "".
 o kventry(String, String)
Creates a new entry with the specified key and value.
 o kventry(String, vqis)
Creates an unattached entry with the specified key and reads its value from the specified input stream.
 o kventry(vqis)
Creates an unattached entry and reads its key and value from the specified input stream.

Method Index

 o kill()
Kills the entry.
 o save(vqos)
Writes the entry to the specified output stream in vqServer .cfg format.

Field Detail

 o value
public java.lang.String value
          The entry's value.

Constructor Detail

 o kventry
public kventry()
          Creates a new entry whose key and value are both "".
 o 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
 o 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
 o 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

Method Detail

 o 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
 o 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


vqServer API version 1.9. vqServer and the vqServer API are copyright © Steve Shering and vqSoft 1997-2000. Last updated 15 May 2000.

Contents
Package index
Package
API index