Class semper.preferences.PrefStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.preferences.PrefStream

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

public class PrefStream
extends Object
implements Streamable
This class is used by the Preferences class to produce a stream encoding the actual state of the preferences manager. This class is also used to retrieve the state of Preferences from a stream. This should not be used outside the Preferences manager directly.

Constructor Index

 o PrefStream()
Constructor.

Method Index

 o groupsRead()
Returns an enumeration of groupname read last time readObject has been called
 o groupsReadCount()
Gives the number of groups read.
 o myStreamSize()
Returns the size of the stream that would hold the externalized form of this field.
 o readObject(StreamInputInterface)
Internalizes this Preferences environment.
 o subGroupReadObject(StreamInputInterface)
Internalizes the subgroup structure.
 o subGroupStreamSize()
Returns the size of the stream corresponding to the subgroup strcuture.
 o subGroupWriteObject(StreamOutputInterface)
Externalizes the subgroup structure.
 o writeObject(StreamOutputInterface)
Externalizes this Preferences environment.

Constructors

 o PrefStream
  public PrefStream()
Constructor. Used by Preferences manager and newInstance(). The new object is then used to write or read (from a stream) a Preferences manager state.
Returns:
a new empty object.
See Also:
Streamable

Methods

 o groupsRead
  protected Enumeration groupsRead()
Returns an enumeration of groupname read last time readObject has been called
Returns:
an enumeration of all groups.
 o groupsReadCount
  protected int groupsReadCount()
Gives the number of groups read.
Returns:
the number of groups.
 o myStreamSize
  public int myStreamSize() throws StreamIOException
Returns the size of the stream that would hold the externalized form of this field.
Returns:
the size of the stream in bytes
See Also:
Streamable
 o readObject
  public void readObject(StreamInputInterface stream) throws StreamIOException
Internalizes this Preferences environment.
Parameters:
stream - is the stream of data the object state is retrieved from
Returns:
none.
See Also:
Streamable
 o writeObject
  public void writeObject(StreamOutputInterface stream) throws StreamIOException
Externalizes this Preferences environment.
Parameters:
stream - is the stream of data the object state is recorded in
Returns:
none
See Also:
Streamable
 o subGroupStreamSize
  public int subGroupStreamSize() throws StreamIOException
Returns the size of the stream corresponding to the subgroup strcuture.
Returns:
the size of the stream in bytes
See Also:
Streamable
 o subGroupReadObject
  public void subGroupReadObject(StreamInputInterface stream) throws StreamIOException
Internalizes the subgroup structure.
Parameters:
stream - is the stream of data the object state is retrieved from
Returns:
none.
See Also:
Streamable
 o subGroupWriteObject
  public void subGroupWriteObject(StreamOutputInterface stream) throws StreamIOException
Externalizes the subgroup structure.
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