|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.codemodel.CodeWriter
com.sun.codemodel.writer.ZipCodeWriter
public class ZipCodeWriter
Writes all the files into a zip file.
Constructor Summary | |
---|---|
ZipCodeWriter(java.io.OutputStream target)
|
Method Summary | |
---|---|
void |
close()
Called by CodeModel at the end of the process. |
java.io.OutputStream |
openBinary(JPackage pkg,
java.lang.String fileName)
Called by CodeModel to store the specified file. |
Methods inherited from class com.sun.codemodel.CodeWriter |
---|
openSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZipCodeWriter(java.io.OutputStream target)
target
- Zip file will be written to this stream.Method Detail |
---|
public java.io.OutputStream openBinary(JPackage pkg, java.lang.String fileName) throws java.io.IOException
CodeWriter
The returned stream will be closed before the next file is stored. So the callee can assume that only one OutputStream is active at any given time.
openBinary
in class CodeWriter
pkg
- The package of the file to be written.fileName
- File name without the path. Something like
"Foo.java" or "Bar.properties"
java.io.IOException
public void close() throws java.io.IOException
CodeWriter
close
in class CodeWriter
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |