CH.ifa.draw.util
Class StorableOutput
- java.lang.Object
-
- CH.ifa.draw.util.StorableOutput
-
public class StorableOutput extends java.lang.ObjectAn output stream that can be used to flatten Storable objects. StorableOutput preserves the object identity of the stored objects.- See Also:
Storable,StorableInput
-
-
Constructor Summary
Constructors Constructor and Description StorableOutput(java.io.OutputStream stream)Initializes the StorableOutput with the given output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()Closes a storable output stream.voidwriteBoolean(boolean b)Writes an int to the output stream.voidwriteColor(java.awt.Color c)voidwriteDouble(double d)Writes an int to the output stream.voidwriteInt(int i)Writes an int to the output stream.voidwriteStorable(Storable storable)Writes a storable object to the output stream.voidwriteString(java.lang.String s)Writes a string to the output stream.
-
-
-
Constructor Detail
-
StorableOutput
public StorableOutput(java.io.OutputStream stream)
Initializes the StorableOutput with the given output stream.
-
-
Method Detail
-
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(java.awt.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(java.lang.String s)
Writes a string to the output stream. Special characters are quoted.
-
close
public void close()
Closes a storable output stream.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG