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
-
StorableOutput(OutputStream)
- Initializes the StorableOutput with the given output stream.
-
close()
- Closes a storable output stream.
-
writeBoolean(boolean)
- Writes an int to the output stream.
-
writeColor(Color)
-
-
writeDouble(double)
- Writes an int to the output stream.
-
writeInt(int)
- Writes an int to the output stream.
-
writeStorable(Storable)
- Writes a storable object to the output stream.
-
writeString(String)
- Writes a string to the output stream.
StorableOutput
public StorableOutput(OutputStream stream)
- Initializes the StorableOutput with the given output stream.
writeStorable
public void writeStorable(Storable storable)
- Writes a storable object to the output stream.
writeInt
public void writeInt(int i)
- Writes an int to the output stream.
writeColor
public void writeColor(Color c)
writeDouble
public void writeDouble(double d)
- Writes an int to the output stream.
writeBoolean
public void writeBoolean(boolean b)
- Writes an int to the output stream.
writeString
public void writeString(String s)
- Writes a string to the output stream. Special characters
are quoted.
close
public void close()
- Closes a storable output stream.
All Packages Class Hierarchy This Package Previous Next Index