CH.ifa.draw.util
Class StorableInput
- java.lang.Object
-
- CH.ifa.draw.util.StorableInput
-
public class StorableInput extends java.lang.ObjectAn input stream that can be used to resurrect Storable objects. StorableInput preserves the object identity of the stored objects.- See Also:
Storable,StorableOutput
-
-
Constructor Summary
Constructors Constructor and Description StorableInput(java.io.InputStream stream)Initializes a Storable input with the given input stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanreadBoolean()Reads a boolean from the input stream.java.awt.ColorreadColor()Reads a color from the input stream.doublereadDouble()Reads a double from the input stream.intreadInt()Reads an int from the input stream.StorablereadStorable()Reads and resurrects a Storable object from the input stream.java.lang.StringreadString()Reads a string from the input stream.
-
-
-
Constructor Detail
-
StorableInput
public StorableInput(java.io.InputStream stream)
Initializes a Storable input with the given input stream.
-
-
Method Detail
-
readStorable
public Storable readStorable() throws java.io.IOException
Reads and resurrects a Storable object from the input stream.- Throws:
java.io.IOException
-
readString
public java.lang.String readString() throws java.io.IOExceptionReads a string from the input stream.- Throws:
java.io.IOException
-
readInt
public int readInt() throws java.io.IOExceptionReads an int from the input stream.- Throws:
java.io.IOException
-
readColor
public java.awt.Color readColor() throws java.io.IOExceptionReads a color from the input stream.- Throws:
java.io.IOException
-
readDouble
public double readDouble() throws java.io.IOExceptionReads a double from the input stream.- Throws:
java.io.IOException
-
readBoolean
public boolean readBoolean() throws java.io.IOExceptionReads a boolean from the input stream.- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG