Interface OutputManager

    • Method Detail

      • createOutput

        java.io.Writer createOutput​(java.lang.String name)
                             throws java.io.IOException
        Create a new output destination based on a name. The user is responsible for calling Writer.close().
        Parameters:
        name - of the given output.
        Returns:
        A Writer to which the code generation should be output.
        Throws:
        java.io.IOException - if an error occurs during output.
      • withOutput

        default void withOutput​(java.lang.String name,
                                ResourceConsumer<java.io.Writer> resourceConsumer)
        Create named output and call ResourceConsumer.accept(Object).
        Parameters:
        name - name of the output to create.
        resourceConsumer - to be called.