JBoss Logging I18n Tools 1.0.0.Beta7

org.jboss.logging.model
Class JavaFileObjectCodeWriter

java.lang.Object
  extended by com.sun.codemodel.internal.CodeWriter
      extended by org.jboss.logging.model.JavaFileObjectCodeWriter

public class JavaFileObjectCodeWriter
extends com.sun.codemodel.internal.CodeWriter

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.

Author:
James R. Perkins, Kevin Pollet - SERLI - (kevin.pollet@serli.com)

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

JavaFileObjectCodeWriter

public JavaFileObjectCodeWriter(JavaFileObject fileObject)
Class constructor.

Parameters:
fileObject - the file object.
Method Detail

openBinary

public OutputStream openBinary(com.sun.codemodel.internal.JPackage pkg,
                               String fileName)
                        throws IOException
Note that none of the parameters are in this method are used.

Specified by:
openBinary in class com.sun.codemodel.internal.CodeWriter
Throws:
IOException

close

public void close()
           throws IOException

Specified by:
close in class com.sun.codemodel.internal.CodeWriter
Throws:
IOException

JBoss Logging I18n Tools 1.0.0.Beta7

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.