saker.util Documentation TaskDoc JavaDoc Packages
public interface ObjectReaderFunction<IN, R>
Functional interface for reading objects from an arbitrary object input.

This functional interface is the abstraction over the ObjectInput.readObject() method. Users of this interface may customize how a specific object is read from an input.

The type of the object input stream is based on the context of the object reading. Most likely will be ObjectInput or similar classes.

INThe type of the object input.
RThe result type of the object reading.
Methods
public R
apply(IN in)
Applies the reading function to the argument object input.
public abstract R apply(IN in) throws IOException, ClassNotFoundException
Applies the reading function to the argument object input.
inThe object input.
The result of the object reading.
IOExceptionIn case of I/O error.
ClassNotFoundExceptionIf a class was not found during the reading operation.