MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / read

Method read

java/src/org/openqa/selenium/json/JsonInput.java:508–518  ·  view source on GitHub ↗

Read the next element from the JSON input stream as the specified type. @param type data type for deserialization (class or TypeToken) @return object of the specified type deserialized from the JSON input stream NOTE : Returns null if the input string is exhausted. @pa

(Type type)

Source from the content-addressed store, hash-verified

506 * @throws UncheckedIOException if an I/O exception is encountered
507 */
508 public <T> @Nullable T read(Type type) {
509 markReadPerformed();
510 skipWhitespace(input);
511
512 // Guard against reading an empty stream
513 if (input.peek() == Input.EOF) {
514 return null;
515 }
516
517 return coercer.coerce(this, type, setter);
518 }
519
520 public <T> T readNonNull(Type type) {
521 return requireNonNull(read(type));

Callers 6

nextBooleanMethod · 0.95
nextNullMethod · 0.95
nextInstantMethod · 0.95
readNonNullMethod · 0.95
readMapMethod · 0.95

Calls 9

markReadPerformedMethod · 0.95
skipWhitespaceMethod · 0.95
coerceMethod · 0.80
charAtMethod · 0.80
lengthMethod · 0.65
readMethod · 0.65
peekMethod · 0.45
formatMethod · 0.45
applyMethod · 0.45