public class GolangOutputManager
extends java.lang.Object
implements org.agrona.generation.OutputManager
OutputManager
for managing the creation of golang source files as the target of code generation.
The character encoding for the Writer
is UTF-8.Constructor and Description |
---|
GolangOutputManager(java.lang.String baseDirName,
java.lang.String namespaceName)
Create a new
OutputManager for generating golang source files into a given package. |
Modifier and Type | Method and Description |
---|---|
java.io.Writer |
createOutput(java.lang.String name)
Create a new output which will be a golang source file in the given package.
|
public GolangOutputManager(java.lang.String baseDirName, java.lang.String namespaceName)
OutputManager
for generating golang source files into a given package.baseDirName
- for the generated source code.namespaceName
- for the generated source code relative to the baseDirName.public java.io.Writer createOutput(java.lang.String name) throws java.io.IOException
The Writer
should be closed once the caller has finished with it. The Writer is
buffer for efficient IO operations.
createOutput
in interface org.agrona.generation.OutputManager
name
- the name of the golang class.Writer
to which the source code should be written.java.io.IOException
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.