public class StringCodeWriter
extends com.sun.codemodel.CodeWriter
JCodeModel
.Modifier and Type | Class and Description |
---|---|
private static class |
StringCodeWriter.InternalFilterOutputStream |
Modifier and Type | Field and Description |
---|---|
private ByteArrayOutputStream |
out |
Constructor and Description |
---|
StringCodeWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getJavaCode()
Retrieves the Java code as String.
|
OutputStream |
openBinary(com.sun.codemodel.JPackage pkg,
String fileName) |
private final ByteArrayOutputStream out
public String getJavaCode()
public OutputStream openBinary(com.sun.codemodel.JPackage pkg, String fileName) throws IOException
openBinary
in class com.sun.codemodel.CodeWriter
IOException
public void close() throws IOException
close
in class com.sun.codemodel.CodeWriter
IOException
Copyright © 2015. All rights reserved.