|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CodeWriter
Receives generated code and writes to the appropriate storage.
Method Summary | |
---|---|
void |
close()
Called by CodeModel at the end of the process. |
java.io.OutputStream |
open(JPackage pkg,
java.lang.String fileName)
Called by CodeModel to store the specified file. |
Method Detail |
---|
java.io.OutputStream open(JPackage pkg, java.lang.String fileName) throws java.io.IOException
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.
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
void close() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |