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 to OutputWriter.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.