Class ByteCopier.ByteStringTransferable

  • All Implemented Interfaces:
    java.awt.datatransfer.Transferable
    Enclosing class:
    ByteCopier

    public static class ByteCopier.ByteStringTransferable
    extends java.lang.Object
    implements java.awt.datatransfer.Transferable
    • Constructor Detail

      • ByteStringTransferable

        public ByteStringTransferable​(java.lang.String byteString)
      • ByteStringTransferable

        public ByteStringTransferable​(java.lang.String byteString,
                                      java.lang.String stringRepresentation)
    • Method Detail

      • getTransferData

        public java.lang.Object getTransferData​(java.awt.datatransfer.DataFlavor flavor)
                                         throws java.awt.datatransfer.UnsupportedFlavorException,
                                                java.io.IOException
        Specified by:
        getTransferData in interface java.awt.datatransfer.Transferable
        Throws:
        java.awt.datatransfer.UnsupportedFlavorException
        java.io.IOException
      • getTransferDataFlavors

        public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
        Specified by:
        getTransferDataFlavors in interface java.awt.datatransfer.Transferable
      • isDataFlavorSupported

        public boolean isDataFlavorSupported​(java.awt.datatransfer.DataFlavor flavor)
        Specified by:
        isDataFlavorSupported in interface java.awt.datatransfer.Transferable