dsto.dfc.swing.dnd
Class RawSerializedObject

java.lang.Object
  extended by dsto.dfc.swing.dnd.RawSerializedObject
All Implemented Interfaces:
Serializable

public class RawSerializedObject
extends Object
implements Serializable

Stores an object as a serialized blob of data. Useful for D&D transferables where the target might not know about the object class but may support transfer of blobs.

Version:
$Revision$
Author:
Matthew
See Also:
Serialized Form

Field Summary
static DataFlavor RAW_SERIALIZED_OBJECT_FLAVOR
           
 
Constructor Summary
RawSerializedObject(byte[] rawData)
           
RawSerializedObject(Object object)
           
 
Method Summary
static Object deserializeObject(byte[] data)
           
 byte[] getRawData()
           
 Object reconstituteObject()
           
static byte[] serializeObject(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RAW_SERIALIZED_OBJECT_FLAVOR

public static final DataFlavor RAW_SERIALIZED_OBJECT_FLAVOR
Constructor Detail

RawSerializedObject

public RawSerializedObject(byte[] rawData)

RawSerializedObject

public RawSerializedObject(Object object)
                    throws IOException
Throws:
IOException
Method Detail

getRawData

public byte[] getRawData()

reconstituteObject

public Object reconstituteObject()
                          throws ClassNotFoundException,
                                 IOException
Throws:
ClassNotFoundException
IOException

serializeObject

public static byte[] serializeObject(Object object)
                              throws IOException
Throws:
IOException

deserializeObject

public static Object deserializeObject(byte[] data)
                                throws IOException,
                                       ClassNotFoundException
Throws:
IOException
ClassNotFoundException


Copyright © 2008 Commonwealth of Australia