package saker.util.io.function
Functional interface for writing objects to an arbitrary object output.
This functional interface represents a custom serializing function that can be applied for a given object output stream and object.
This interfaces is very similar to IOBiConsumer, but is defined as the counterpart of ObjectReaderFunction.
The type of the object output stream is based on the context of the object writing. Most likely will be ObjectOutput or similar classes.
OUTThe type of the object output.
TThe type of the serialized object.
public void | apply( Applies this serializing function to the argument output and object. |
Applies this serializing function to the argument output and object.
outThe object output.
objectThe object to serialize.
IOExceptionIn case of I/O error.
NullPointerExceptionIf the object is
null
, and this function doesn't allow null
s.