Share via


ReadValueCallback<T,R> Interface

Type Parameters

T

Input type of the callback.

R

Output type of the callback.

public interface ReadValueCallback<T,R>

A callback used when reading a JSON value, such as readArray(ReadValueCallback<JsonReader,T> elementReaderFunc).

Method Summary

Modifier and Type Method and Description
abstract R read(T input)

Applies the read callback to the input.

Method Details

read

public abstract R read(T input)

Applies the read callback to the input.

Parameters:

input - Input to the callback.

Returns:

The output of the callback.

Throws:

IOException

- If an I/O error occurs during the callback.

Applies to