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

Method read

java/src/org/openqa/selenium/json/JsonInput.java:449–459  ·  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

447 * @throws UncheckedIOException if an I/O exception is encountered
448 */
449 public <T> @Nullable T read(Type type) {
450 markReadPerformed();
451 skipWhitespace(input);
452
453 // Guard against reading an empty stream
454 if (input.peek() == Input.EOF) {
455 return null;
456 }
457
458 return coercer.coerce(this, type, setter);
459 }
460
461 public <T> T readNonNull(Type type) {
462 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