com.sun.tools.xjc
Class ProgressCodeWriter

java.lang.Object
  extended by com.sun.codemodel.CodeWriter
      extended by com.sun.codemodel.writer.FilterCodeWriter
          extended by com.sun.tools.xjc.ProgressCodeWriter

final class ProgressCodeWriter
extends com.sun.codemodel.writer.FilterCodeWriter

CodeWriter that reports progress to XJCListener.


Field Summary
 
Fields inherited from class com.sun.codemodel.writer.FilterCodeWriter
core
 
Constructor Summary
ProgressCodeWriter(com.sun.codemodel.CodeWriter output, XJCListener progress)
           
 
Method Summary
 java.io.OutputStream openBinary(com.sun.codemodel.JPackage pkg, java.lang.String fileName)
           
 java.io.Writer openSource(com.sun.codemodel.JPackage pkg, java.lang.String fileName)
           
 
Methods inherited from class com.sun.codemodel.writer.FilterCodeWriter
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressCodeWriter

public ProgressCodeWriter(com.sun.codemodel.CodeWriter output,
                          XJCListener progress)
Method Detail

openSource

public java.io.Writer openSource(com.sun.codemodel.JPackage pkg,
                                 java.lang.String fileName)
                          throws java.io.IOException
Overrides:
openSource in class com.sun.codemodel.writer.FilterCodeWriter
Throws:
java.io.IOException

openBinary

public java.io.OutputStream openBinary(com.sun.codemodel.JPackage pkg,
                                       java.lang.String fileName)
                                throws java.io.IOException
Overrides:
openBinary in class com.sun.codemodel.writer.FilterCodeWriter
Throws:
java.io.IOException