package saker.util.io.function
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.
public R | apply( Applies the reading function to the argument object input. |
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.