MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / string

Method string

java/src/org/openqa/selenium/remote/http/Contents.java:86–91  ·  view source on GitHub ↗
(CharSequence value, Charset charset)

Source from the content-addressed store, hash-verified

84 }
85
86 public static Supplier string(CharSequence value, Charset charset) {
87 Require.nonNull("Value to return", value);
88 Require.nonNull("Character set", charset);
89
90 return bytes(value.toString().getBytes(charset));
91 }
92
93 public static Supplier file(final File file) {
94 return new FileContentSupplier(file);

Calls 8

nonNullMethod · 0.95
bytesMethod · 0.95
getEncoderMethod · 0.80
toByteArrayMethod · 0.80
toStringMethod · 0.65
contentAsStringMethod · 0.65
readMethod · 0.65
writeMethod · 0.45