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.
-
PrefStream()
- Constructor.
-
groupsRead()
- Returns an enumeration of groupname read last time readObject has been called
-
groupsReadCount()
- Gives the number of groups read.
-
myStreamSize()
- Returns the size of the stream that would hold the externalized form of this field.
-
readObject(StreamInputInterface)
- Internalizes this Preferences environment.
-
subGroupReadObject(StreamInputInterface)
- Internalizes the subgroup structure.
-
subGroupStreamSize()
- Returns the size of the stream corresponding to the subgroup strcuture.
-
subGroupWriteObject(StreamOutputInterface)
- Externalizes the subgroup structure.
-
writeObject(StreamOutputInterface)
- Externalizes this Preferences environment.
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
groupsRead
protected Enumeration groupsRead()
- Returns an enumeration of groupname read last time readObject has been called
- Returns:
- an enumeration of all groups.
groupsReadCount
protected int groupsReadCount()
- Gives the number of groups read.
- Returns:
- the number of groups.
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
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
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
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
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
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