krb5.crypto
Class MyMarshalledObject

java.lang.Object
  extended by krb5.crypto.MyMarshalledObject
All Implemented Interfaces:
java.io.Serializable

public class MyMarshalledObject
extends java.lang.Object
implements java.io.Serializable

Class Description : A variation of Sun MyMarshalledObject class.

Version:
1.1
Author:
Bojan Pajkovski
See Also:
Serialized Form

Constructor Summary
MyMarshalledObject(byte[] data)
           
MyMarshalledObject(java.lang.Object obj)
          Creates a new MarshalledObject that contains the serialized representation of the current state of the supplied object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object get()
          Returns a new copy of the contained marshalledobject.
 byte[] getByte()
           
static void main(java.lang.String[] args)
          For unit test only
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyMarshalledObject

public MyMarshalledObject(java.lang.Object obj)
                   throws java.io.IOException
Creates a new MarshalledObject that contains the serialized representation of the current state of the supplied object. The object is serialized with the semantics used for marshaling parameters for RMI calls.

Parameters:
obj - Object
Throws:
java.io.IOException

MyMarshalledObject

public MyMarshalledObject(byte[] data)
Method Detail

getByte

public byte[] getByte()

get

public java.lang.Object get()
                     throws java.io.IOException,
                            java.lang.ClassNotFoundException
Returns a new copy of the contained marshalledobject. The internal representation is deserialized with the semantics used for unmarshaling paramters for RMI calls.

Returns:
Object
Throws:
java.io.IOException
java.lang.ClassNotFoundException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

main

public static void main(java.lang.String[] args)
For unit test only

Parameters:
args - String[]