org.kaariboga.core
Class KaaribogaInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.ObjectInputStream
              |
              +--org.kaariboga.core.KaaribogaInputStream
All Implemented Interfaces:
java.io.DataInput, java.io.ObjectInput, java.io.ObjectStreamConstants

public class KaaribogaInputStream
extends java.io.ObjectInputStream

Reades a kaariboga objcect with the class file from the stream.


Inner classes inherited from class java.io.ObjectInputStream
java.io.ObjectInputStream.GetField, java.io.ObjectInputStream.GetFieldImpl
 
Field Summary
(package private)  KaaribogaAddress base
          Address of the KaaribogaBase that invokes this input stream.
(package private)  ClassManager classManager
          Handles classes and their byte codes.
(package private)  KaaribogaAddress host
          The internet host that supplies the byte codes for the incoming agents.
 
Fields inherited from class java.io.ObjectInputStream
abortClassNotFoundException, abortIOException, blockDataMode, buf, bufpos, bufsize, callbacks, cdata, CDATA_MAX_LEN, classdesc, classes, count, currCode, currentClass, currentClassDesc, currentGetFields, currentObject, data, dis, enableResolve, enableSubclassImplementation, in, nextWireOffset, readObjectArglist, recursionDepth, sbuf, spClass, wireHandle2Object
 
Fields inherited from class java.io.InputStream
SKIP_BUFFER_SIZE, skipBuffer
 
Fields inherited from interface java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
 
Constructor Summary
KaaribogaInputStream(ClassManager clManager, KaaribogaAddress base, java.io.InputStream in, KaaribogaAddress host)
          Creates a new KaaribogaInputStream.
 
Method Summary
protected  java.lang.Class resolveClass(java.io.ObjectStreamClass v)
          This is called by the super class if a new class is read in.
 
Methods inherited from class java.io.ObjectInputStream
allocateNewArray, allocateNewObject, assignWireOffset, available, bufferData, bytesToDoubles, bytesToFloats, close, defaultReadObject, doValidations, enableResolveObject, ensureBufferCapacity, growClassStacks, inputArray, inputClassDescriptor, inputClassFields, inputObject, inputProxyClassDescriptor, invokeObjectReader, latestUserDefinedLoader, loadClass0, peekCode, pushbackCode, read, read, readBoolean, readByte, readChar, readClassDescriptor, readCode, readDouble, readFields, readFloat, readFully, readFully, readFullyInternal, readInt, readLine, readLong, readObject, readObject, readObjectOverride, readShort, readStreamHeader, readUnsignedByte, readUnsignedShort, readUTF, readUTFBody, refill, registerValidation, resetStream, resolveObject, resolveProxyClass, setBlockData, setObjectFieldValue, setPrimitiveFieldValues, skipBytes, skipToEndOfBlockData
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface java.io.ObjectInput
read, skip
 
Methods inherited from interface java.io.ObjectStreamConstants
 

Field Detail

base

KaaribogaAddress base
Address of the KaaribogaBase that invokes this input stream.

host

KaaribogaAddress host
The internet host that supplies the byte codes for the incoming agents.

classManager

ClassManager classManager
Handles classes and their byte codes.
Constructor Detail

KaaribogaInputStream

public KaaribogaInputStream(ClassManager clManager,
                            KaaribogaAddress base,
                            java.io.InputStream in,
                            KaaribogaAddress host)
                     throws java.io.IOException
Creates a new KaaribogaInputStream. This stream is a processing stream that has to be connected to another stream.
Parameters:
in - The stream that this stream is connected to.
host - The host that holds the source code for the incoming classes.
Method Detail

resolveClass

protected java.lang.Class resolveClass(java.io.ObjectStreamClass v)
                                throws java.io.IOException,
                                       java.lang.ClassNotFoundException
This is called by the super class if a new class is read in. Resolve class calls the KaaribogaClassLoader to load the source code of the class from a remote location if necessary.
Overrides:
resolveClass in class java.io.ObjectInputStream