SystemClipboard
SystemClipboard is a Java utility class that simplifies interaction with the system clipboard.
It's a thin wrapper for Java's built-in Clipboard class and available in the download section.
Methods
- asType() - returns the clipboard's contents with the specified type
- copy(data) - copies the given data to the clipboard
- isType() - returns whether the clipboard's contents can be represented as the specified type
- clipboard() returns the system clipboard
- clear() or empty() clears the clipboard, removing its contents
- isEmpty() returns true if, and only if, getAvailableDataFlavors().length is 0
- Delegate methods for each method in the Clipboard class
Documentation
- Class Summary
- SystemClipboard Utility class to simplify using the system's clipboard.
Java Version
SystemClipboard works with Java 1.5 and above.
How to import
The SystemClipboard class is located in the info.codesaway.util package.
Download
The download includes the SystemClipboard class, as well as its source.
Questions? support@codesaway.info
Format: Jar file, source included (11 KB)
Download: SystemClipboard.jar
Licensing
SystemClipboard is released under the New BSD License and is free for both personal and commercial use.
If you found SystemClipboard useful, please link back to this page so that others can find it as well.