Package owl.run.modules
Interface OutputWriter
-
- All Superinterfaces:
OwlModule
- All Known Implementing Classes:
OutputWriters.ToHoa
- 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 OutputWriter extends OwlModule
The final piece of every pipeline, formatting the produced results and writing them on some output. These consumers should be very efficient, since they are effectively blocking the output stream during each call toOutputWriter.Binding.write(Object)
, which may degrade performance in parallel invocations.If some implementation runs for a significant amount of time, consider converting it to an object -> string transformer and using a
string output
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
OutputWriter.Binding
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputWriter.Binding
bind(Writer writer, Environment env)
-
-
-
Method Detail
-
bind
OutputWriter.Binding bind(Writer writer, Environment env)
-
-