saker.util Documentation TaskDoc JavaDoc Packages
public interface ObjectWriterFunction<OUT, T>
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.
Methods
public void
apply(OUT out, T object)
Applies this serializing function to the argument output and object.
public abstract void apply(OUT out, T object) throws IOException, NullPointerException
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 nulls.