public class Clipboard
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Clipboard.Charset
Enumeration for the charset property in MIME types (UTF-8, UTF-16, etc.)
|
static class |
Clipboard.TextType
Enumeration for the text type property in MIME types
|
static class |
Clipboard.TransferType
Enumeration for the transfert type property in MIME types (InputStream, CharBuffer, etc.)
|
Modifier and Type | Field and Description |
---|---|
static Clipboard.TransferType |
BYTE_BUFFER |
static Clipboard.TransferType |
CHAR_BUFFER |
static Clipboard.TextType |
HTML |
static Clipboard.TransferType |
INPUT_STREAM |
static Clipboard.TextType |
PLAIN |
static Clipboard.TransferType |
READER |
static Clipboard.Charset |
UNICODE |
static Clipboard.Charset |
US_ASCII |
static Clipboard.Charset |
UTF16 |
static Clipboard.Charset |
UTF8 |
Modifier and Type | Method and Description |
---|---|
static java.awt.datatransfer.Clipboard |
getSystemClipboard() |
static void |
putText(java.lang.CharSequence data)
Dumps a given text (either String or StringBuffer) into the Clipboard, with a default MIME type
|
static void |
putText(Clipboard.TextType type,
Clipboard.Charset charset,
Clipboard.TransferType transferType,
java.lang.CharSequence data)
Dumps a given text (either String or StringBuffer) into the Clipboard with a specified MIME type
|
public static final Clipboard.TextType HTML
public static final Clipboard.TextType PLAIN
public static final Clipboard.Charset UTF8
public static final Clipboard.Charset UTF16
public static final Clipboard.Charset UNICODE
public static final Clipboard.Charset US_ASCII
public static final Clipboard.TransferType READER
public static final Clipboard.TransferType INPUT_STREAM
public static final Clipboard.TransferType CHAR_BUFFER
public static final Clipboard.TransferType BYTE_BUFFER
public static void putText(java.lang.CharSequence data)
public static void putText(Clipboard.TextType type, Clipboard.Charset charset, Clipboard.TransferType transferType, java.lang.CharSequence data)
public static java.awt.datatransfer.Clipboard getSystemClipboard()