loader
Class ClassPacket

java.lang.Object
  |
  +--loader.ResourcePacket
        |
        +--loader.ClassPacket

public class ClassPacket
extends ResourcePacket

It is used to sent the class byte array to the requester.

It could also store some further information.

Version:
1.2 August 2000
Author:
Lorenzo Bettini - bettini@dsi.unifi.it, Donato Cappetta - cappetta@infomedia.it
See Also:
Serialized Form

Constructor Summary
ClassPacket(byte[] bytes)
          Costructor for the byte array
ClassPacket(java.lang.String error)
          Costructor for errors
 
Method Summary
 byte[] getClassBytes()
          return the byte array
 
Methods inherited from class loader.ResourcePacket
getError, getResourceBytes, isOK
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPacket

public ClassPacket(java.lang.String error)
Costructor for errors
Parameters:
error - the error that was found on the server

ClassPacket

public ClassPacket(byte[] bytes)
Costructor for the byte array
Parameters:
bytes - the byte array for the requested class
Method Detail

getClassBytes

public byte[] getClassBytes()
return the byte array