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 an XML value, such as getNullableElement(ReadValueCallback<String,T> converter).

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:

XMLStreamException

- If an XML stream error occurs during application of the callback.

IOException

- If an XML stream error occurs during application of the callback.

Applies to