com.threerings.util
Class ToolUtil.WrappedTransfer

java.lang.Object
  extended by com.threerings.util.ToolUtil.WrappedTransfer
All Implemented Interfaces:
Transferable
Enclosing class:
ToolUtil

public static class ToolUtil.WrappedTransfer
extends Object
implements Transferable

A Transferable available in two flavors: one for use within a single VM and one that uses binary export/import to exchange data between different VMs. Either way, the actual data returned is a SerializableWrapper containing the object of interest.


Constructor Summary
ToolUtil.WrappedTransfer(Object object)
           
 
Method Summary
 Object getTransferData(DataFlavor flavor)
           
 DataFlavor[] getTransferDataFlavors()
           
 boolean isDataFlavorSupported(DataFlavor flavor)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolUtil.WrappedTransfer

public ToolUtil.WrappedTransfer(Object object)
Method Detail

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor flavor)
Specified by:
isDataFlavorSupported in interface Transferable

getTransferData

public Object getTransferData(DataFlavor flavor)
Specified by:
getTransferData in interface Transferable


Copyright © 2011. All Rights Reserved.