Bees v0.5.0 API

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.


Constructor Summary
KernelObjectStreamer()
          Construct an empty KernelObjectStreamer.
 
Method Summary
 long read(KernelObjectStore kos, java.io.DataInputStream is)
          Read a KernelObject from the stream and put in the store.
 java.lang.String toString()
           
 void write(KernelObjectStore kos, KernelObject ko, java.io.DataOutputStream os)
          Write a KernelObject to the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KernelObjectStreamer

public KernelObjectStreamer()
Construct an empty KernelObjectStreamer.
Method Detail

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

Bees v0.5.0 API

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/