public interface OutputManager
Modifier and Type | Method and Description |
---|---|
Writer |
createOutput(String name)
Create a new output destination based on a name.
|
default void |
withOutput(String name,
ResourceConsumer<Writer> resourceConsumer)
Create named output and call
ResourceConsumer.accept(Object) . |
Writer createOutput(String name) throws IOException
Writer.close()
.name
- of the given output.Writer
to which the code generation should be output.IOException
- if an error occurs during output.default void withOutput(String name, ResourceConsumer<Writer> resourceConsumer)
ResourceConsumer.accept(Object)
.name
- name of the output to create.resourceConsumer
- to be called.Copyright © 2014-2021 Real Logic Limited. All Rights Reserved.