public class PackageOutputManager extends java.lang.Object implements OutputManager
OutputManager
for managing the creation of Java source files as the target of code generation.
The character encoding for the Writer
is UTF-8.Constructor and Description |
---|
PackageOutputManager(java.lang.String baseDirName,
java.lang.String packageName)
Create a new
OutputManager for generating Java 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 Java source file in the given package.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withOutput
public PackageOutputManager(java.lang.String baseDirName, java.lang.String packageName)
OutputManager
for generating Java source files into a given package.baseDirName
- for the generated source code.packageName
- 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 OutputManager
name
- the name of the Java class.Writer
to which the source code should be written.java.io.IOException
- if an error occurs during output.Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.