I was wondering whether it's possible to get the raw XML spreadsheet from the windows clipboard. Since when looking into the clipboard with a clipboard viewer (https://www.freeclipboardviewer.com/windowsclipboard/), XML Spreadsheet is one of the listed flavors. However, when looking into the available Dataflavors via the Java Clipboard class, all I can find is text/plain and text/html with different encodings and streams/buffers/strings/...
Therefore using the custom flavor new DataFlavor("text/xml", "XML Spreadsheet"); didn't work as I expected. While using the HTML would be an option, I'd prefer having the spreadsheet, as it contains some additional information.
UPDATE
I've found out that this seems to be possible via the Java FX Clipboard class, however, since onward Java 9? FX isn't bundled anymore this would be quite bad and it would also kind of suck to have the whole FX stack inititalized just to be able to properly access the clipboard.