All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.util.StorableInput

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

public class StorableInput
extends Object
An input stream that can be used to resurrect Storable objects. StorableInput preserves the object identity of the stored objects.

See Also:
Storable, StorableOutput

Constructor Index

 o StorableInput(InputStream)
Initializes a Storable input with the given input stream.

Method Index

 o readBoolean()
Reads a boolean from the input stream.
 o readColor()
Reads a color from the input stream.
 o readDouble()
Reads a double from the input stream.
 o readInt()
Reads an int from the input stream.
 o readStorable()
Reads and resurrects a Storable object from the input stream.
 o readString()
Reads a string from the input stream.

Constructors

 o StorableInput
 public StorableInput(InputStream stream)
Initializes a Storable input with the given input stream.

Methods

 o readStorable
 public Storable readStorable() throws IOException
Reads and resurrects a Storable object from the input stream.

 o readString
 public String readString() throws IOException
Reads a string from the input stream.

 o readInt
 public int readInt() throws IOException
Reads an int from the input stream.

 o readColor
 public Color readColor() throws IOException
Reads a color from the input stream.

 o readDouble
 public double readDouble() throws IOException
Reads a double from the input stream.

 o readBoolean
 public boolean readBoolean() throws IOException
Reads a boolean from the input stream.


All Packages  Class Hierarchy  This Package  Previous  Next  Index