Package com.sun.codemodel.writer
Class FilterCodeWriter
java.lang.Object
com.sun.codemodel.CodeWriter
com.sun.codemodel.writer.FilterCodeWriter
- Direct Known Subclasses:
ProgressCodeWriter,PrologCodeWriter
CodeWriter that delegates to another CodeWriter.- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsFields inherited from class com.sun.codemodel.CodeWriter
encoding -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Called by CodeModel at the end of the process.openBinary(JPackage pkg, String fileName) Called by CodeModel to store the specified file.openSource(JPackage pkg, String fileName) Called by CodeModel to store the specified file.
-
Field Details
-
core
-
-
Constructor Details
-
FilterCodeWriter
-
-
Method Details
-
openBinary
Description copied from class:CodeWriterCalled by CodeModel to store the specified file. The callee must allocate a storage to store the specified file.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.
- Specified by:
openBinaryin classCodeWriter- Parameters:
pkg- The package of the file to be written.fileName- File name without the path. Something like "Foo.java" or "Bar.properties"- Throws:
IOException
-
openSource
Description copied from class:CodeWriterCalled by CodeModel to store the specified file. The callee must allocate a storage to store the specified file.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.
- Overrides:
openSourcein classCodeWriter- Parameters:
pkg- The package of the file to be written.fileName- File name without the path. Something like "Foo.java" or "Bar.properties"- Throws:
IOException
-
close
Description copied from class:CodeWriterCalled by CodeModel at the end of the process.- Specified by:
closein classCodeWriter- Throws:
IOException
-