org.jhotdraw.gui.datatransfer
Class InputStreamTransferable

java.lang.Object
  extended by org.jhotdraw.gui.datatransfer.AbstractTransferable
      extended by org.jhotdraw.gui.datatransfer.InputStreamTransferable
All Implemented Interfaces:
java.awt.datatransfer.Transferable

public class InputStreamTransferable
extends AbstractTransferable

A Transferable with an InputStream as its transfer class.

Version:
$Id: InputStreamTransferable.java 527 2009-06-07 14:28:19Z rawcoder $
Author:
Werner Randelshofer

Field Summary
private  byte[] data
           
 
Constructor Summary
InputStreamTransferable(java.awt.datatransfer.DataFlavor[] flavors, byte[] data)
           
InputStreamTransferable(java.awt.datatransfer.DataFlavor flavor, byte[] data)
          Creates a new instance.
 
Method Summary
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
           
 
Methods inherited from class org.jhotdraw.gui.datatransfer.AbstractTransferable
getTransferDataFlavors, isDataFlavorSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private byte[] data
Constructor Detail

InputStreamTransferable

public InputStreamTransferable(java.awt.datatransfer.DataFlavor flavor,
                               byte[] data)
Creates a new instance.


InputStreamTransferable

public InputStreamTransferable(java.awt.datatransfer.DataFlavor[] flavors,
                               byte[] data)
Method Detail

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException