- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Implements the optimization of
Coercion
.- See Also:
-
Method Summary
-
Method Details
-
optimize
Unwraps 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).- Parameters:
out
- the writer to try unwrappingencoder
- the encoder being used ornull
for none- Returns:
- The functionally equivalent, but more efficient/direct, writer
or
out
when nothing to unwrap
-