MCPcopy Create free account
hub / github.com/HumbleUI/JWM / getString

Method getString

shared/java/ClipboardEntry.java:77–83  ·  view source on GitHub ↗

Get clipboard entry content as string text. If data cannot be converted to the string, this function throws exception. @return clipboard data converted to the string

()

Source from the content-addressed store, hash-verified

75 * @return clipboard data converted to the string
76 */
77 @NotNull @SneakyThrows
78 public String getString() {
79 if (Platform.CURRENT == Platform.X11 || Platform.CURRENT == Platform.MACOS) {
80 return new String(_data, "UTF-8");
81 }
82 return new String(_data, "UTF-16LE");
83 }
84}

Callers 1

acceptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected