Package java.awt.datatransfer

Examples of java.awt.datatransfer.DataFlavor.readExternal()


        f.writeExternal(oos);
        ByteArrayInputStream bais =
          new ByteArrayInputStream(baos.toByteArray());
        ObjectInputStream ois = new ObjectInputStream(bais);
        DataFlavor read = new DataFlavor();
        read.readExternal(ois);
        assertEquals(f.getPrimaryType(), read.getPrimaryType());
        assertEquals(f.getSubType(), read.getSubType());
        assertEquals(f.getRepresentationClass(),
                     read.getRepresentationClass());
        assertEquals(f.getHumanPresentableName(),
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.