- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface WritableContents
As a function, writes some contents to an output stream. As a class, represents contents that can
be written to an output stream. This may be "unrealized-before-write" contents; for example, a
file may be open and read for input contents only when this function is called to write to an
output stream.