All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.preferences.ConfigStream

java.lang.Object
   |
   +----semper.preferences.ConfigStream

public class ConfigStream
extends Object
This is used by the Configuration class to write/read to/from a stream the state configuration. Should not be used outside the preferences package. The resulting stream (in case of writing) is compatible with the local file system and thus editable. A configuration file is of the form: #field_name1 value1 #field_name2 value2 etc... This is used by the Configuration class and should not be used from the outside.

Version:
$Revision: 1.8 $ $Date: 1998/04/07 12:40:29 $
Author:
Louis Salvail

Constructor Index

 o ConfigStream()
This should never be called.

Method Index

 o readObject(DataInputStream)
Internalizes configuration.
 o writeObject(DataOutputStream)
Externalizes configuration.

Constructors

 o ConfigStream
 public ConfigStream() throws ConfigurationException
This should never be called. Everything in that class is static. A configuration file is a sequence of line: #FIELD_NAME FIELD_VALUE. If the fieldvalue contains a blank the special form: #FIELD_NAME "FIELD VALUE" can be used.

Throws: ConfigurationException
when this constructor is called.

Methods

 o readObject
 public static void readObject(DataInputStream stream) throws IOException
Internalizes configuration. Read a stream to set the configuration manager.

Parameters:
stream - is the stream of data the object state is retrieved from
Returns:
none.
See Also:
Streamable
 o writeObject
 public static void writeObject(DataOutputStream stream) throws IOException
Externalizes configuration. Put into a stream the actual state of the Configuration manager. The format is comptatible with the local readable files system.

Parameters:
stream - is the stream of data the object state is recorded in
Returns:
none
See Also:
Streamable

All Packages  Class Hierarchy  This Package  Previous  Next  Index