All Packages Class Hierarchy This Package Previous Next Index
Class macondo.mistero.GlobalSerializer
macondo.mistero.GlobalSerializer
- public class GlobalSerializer
This is the global serializer. Using Java object
serialization it can serialize and deserialize every Java object
that implements the java.io.Serializable interface.
-
GlobalSerializer()
- Default constructor.
-
dump(Object, OutputStream)
- JadaSerializer interface method.
-
restore(InputStream)
- JadaSerializer interface method.
GlobalSerializer
public GlobalSerializer()
- Default constructor.
dump
public void dump(Object object,
OutputStream os) throws IOException, ItemNotStreamableException
- JadaSerializer interface method.
Dumps the given object into the specified output stream.
- Parameters:
- object - the object to dump.
- os - the output stream where the object is written.
- Throws: IOException
- thrown if any I/O error occurs.
- Throws: ItemNotStreamableException
- thrown if the
object is not streamable.
restore
public Object restore(InputStream is) throws SpaceException
- JadaSerializer interface method.
Returns an object read from a stream written by another serializer.
- Parameters:
- is - the input stream from which the object is read.
- Returns:
- an object read from the input stream.
- Throws: SpaceException
- thrown if an error occurs while
performing an operation on a tuple space.
All Packages Class Hierarchy This Package Previous Next Index