|
|
@ -37,7 +37,7 @@ class ClipboardUtils {
|
|
|
|
newContent = (String) clipboardContents.getTransferData(TEXT.getDataFlavor());
|
|
|
|
newContent = (String) clipboardContents.getTransferData(TEXT.getDataFlavor());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (UnsupportedFlavorException | IOException exp) {
|
|
|
|
} catch (UnsupportedFlavorException | IOException exp) {
|
|
|
|
logger.info("Exception Thrown When Retrieving String Content", exp);
|
|
|
|
logger.error("Exception Thrown When Retrieving String Content", exp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return newContent;
|
|
|
|
return newContent;
|
|
|
@ -57,7 +57,7 @@ class ClipboardUtils {
|
|
|
|
bufferedImage = convertToBufferedImage((Image) clipboardContents.getTransferData(IMAGE.getDataFlavor()));
|
|
|
|
bufferedImage = convertToBufferedImage((Image) clipboardContents.getTransferData(IMAGE.getDataFlavor()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (UnsupportedFlavorException | IOException exp) {
|
|
|
|
} catch (UnsupportedFlavorException | IOException exp) {
|
|
|
|
logger.info("Exception Thrown When Retrieving Image Content", exp);
|
|
|
|
logger.error("Exception Thrown When Retrieving Image Content", exp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return bufferedImage;
|
|
|
|
return bufferedImage;
|
|
|
@ -77,7 +77,7 @@ class ClipboardUtils {
|
|
|
|
fileList = (List<File>) clipboardContents.getTransferData(FILELIST.getDataFlavor());
|
|
|
|
fileList = (List<File>) clipboardContents.getTransferData(FILELIST.getDataFlavor());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (UnsupportedFlavorException | IOException exp) {
|
|
|
|
} catch (UnsupportedFlavorException | IOException exp) {
|
|
|
|
logger.info("Exception Thrown When Retrieving File Content", exp);
|
|
|
|
logger.error("Exception Thrown When Retrieving File Content", exp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return fileList;
|
|
|
|
return fileList;
|
|
|
@ -97,7 +97,7 @@ class ClipboardUtils {
|
|
|
|
myClipboardContent.setOldContent(contents.getTransferData(FILELIST.getDataFlavor()));
|
|
|
|
myClipboardContent.setOldContent(contents.getTransferData(FILELIST.getDataFlavor()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (UnsupportedFlavorException | IOException exp) {
|
|
|
|
} catch (UnsupportedFlavorException | IOException exp) {
|
|
|
|
exp.printStackTrace();
|
|
|
|
logger.error("Exception Thrown When Retrieving Clipboard Contents", exp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return myClipboardContent;
|
|
|
|
return myClipboardContent;
|
|
|
|