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, int totalFileCount)
           
 
Method Summary
 OutputStream openBinary(com.sun.codemodel.JPackage pkg, String fileName)
           
 Writer openSource(com.sun.codemodel.JPackage pkg, 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,
                          int totalFileCount)
Method Detail

openSource

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

openBinary

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