dsto.dfc.swing.dnd
Class RawSerializedObject
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RAW_SERIALIZED_OBJECT_FLAVOR
public static final DataFlavor RAW_SERIALIZED_OBJECT_FLAVOR
RawSerializedObject
public RawSerializedObject(byte[] rawData)
RawSerializedObject
public RawSerializedObject(Object object)
throws IOException
- Throws:
IOException
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