- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
optimizeUnwraps a writer to expose any wrapped writer. The wrapped writer is only returned when it is write-through, meaning the wrapper doesn't modify the data written, and writes to the wrapped writer immediately (no buffering).
out- the writer to try unwrapping
encoder- the encoder being used or
- The functionally equivalent, but more efficient/direct, writer
outwhen nothing to unwrap