bees.core.kernel
Class KernelObjectStreamer
java.lang.Object
|
+--bees.core.kernel.KernelObjectStreamer
- public final class KernelObjectStreamer
- extends java.lang.Object
Simple object used to write and read KernelObject's to/from a stream.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KernelObjectStreamer
public KernelObjectStreamer()
- Construct an empty KernelObjectStreamer.
read
public long read(KernelObjectStore kos,
java.io.DataInputStream is)
throws java.lang.ClassNotFoundException,
java.io.IOException
- Read a KernelObject from the stream and put in the store.
- Parameters:
kos
- The KernelObjectStore to add the KernelObject to.is
- The stream to read the KernelObject from.- Returns:
- The KernelObject's unique identifier.
- Throws:
Throws
- an IOException if theres a problem while reading.
write
public void write(KernelObjectStore kos,
KernelObject ko,
java.io.DataOutputStream os)
throws java.io.IOException
- Write a KernelObject to the stream.
- Parameters:
ko
- The KernelObject to write to the stream.is
- The stream to write the KernelObject to.- Throws:
Throws
- an IOException if theres a problem while writing.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/