JHotDraw 7.4.1

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 604 2010-01-09 12:00:29Z rawcoder $
Author:
Werner Randelshofer

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
 

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

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.