|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.codemodel.internal.CodeWriter
org.jboss.logging.model.JavaFileObjectCodeWriter
public class JavaFileObjectCodeWriter
A code writer based on the OutputStream from a JavaFileObject.
The main intent is to use this class with an annotation processor. You can use the Filer#createSourceFile to retrieve the JavaFileObject.
| Constructor Summary | |
|---|---|
JavaFileObjectCodeWriter(JavaFileObject fileObject)
Class constructor. |
|
| Method Summary | |
|---|---|
void |
close()
|
OutputStream |
openBinary(com.sun.codemodel.internal.JPackage pkg,
String fileName)
Note that none of the parameters are in this method are used. |
| Methods inherited from class com.sun.codemodel.internal.CodeWriter |
|---|
openSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaFileObjectCodeWriter(JavaFileObject fileObject)
fileObject - the file object.| Method Detail |
|---|
public OutputStream openBinary(com.sun.codemodel.internal.JPackage pkg,
String fileName)
throws IOException
openBinary in class com.sun.codemodel.internal.CodeWriterIOException
public void close()
throws IOException
close in class com.sun.codemodel.internal.CodeWriterIOException
|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||