ClipboardUtil
Introduction
Following the strong demand from Hutool community members, ClipboardUtil class was added in version 3.2.0+ to simplify the operation of clipboard (although its usage scenarios are limited).
Usage
ClipboardUtil encapsulates several commonly used static methods:
General methods
getClipboard- to get the system clipboardset- to set content to the clipboardget- to get the content from the clipboard
Methods specific to text
setStr- to set text to the clipboardgetStr- to get text from the clipboard
Methods specific to Image objects (images)
setImage- to set an image to the clipboardgetImage- to get an image from the clipboard