All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.util.StorableOutput

java.lang.Object
   |
   +----CH.ifa.draw.util.StorableOutput

public class StorableOutput
extends Object
An output stream that can be used to flatten Storable objects. StorableOutput preserves the object identity of the stored objects.

See Also:
Storable, StorableInput

Constructor Index

 o StorableOutput(OutputStream)
Initializes the StorableOutput with the given output stream.

Method Index

 o close()
Closes a storable output stream.
 o writeBoolean(boolean)
Writes an int to the output stream.
 o writeColor(Color)
 o writeDouble(double)
Writes an int to the output stream.
 o writeInt(int)
Writes an int to the output stream.
 o writeStorable(Storable)
Writes a storable object to the output stream.
 o writeString(String)
Writes a string to the output stream.

Constructors

 o StorableOutput
 public StorableOutput(OutputStream stream)
Initializes the StorableOutput with the given output stream.

Methods

 o writeStorable
 public void writeStorable(Storable storable)
Writes a storable object to the output stream.

 o writeInt
 public void writeInt(int i)
Writes an int to the output stream.

 o writeColor
 public void writeColor(Color c)
 o writeDouble
 public void writeDouble(double d)
Writes an int to the output stream.

 o writeBoolean
 public void writeBoolean(boolean b)
Writes an int to the output stream.

 o writeString
 public void writeString(String s)
Writes a string to the output stream. Special characters are quoted.

 o close
 public void close()
Closes a storable output stream.


All Packages  Class Hierarchy  This Package  Previous  Next  Index