public class ZipCodeWriter extends CodeWriter
encoding
Constructor and Description |
---|
ZipCodeWriter(OutputStream target) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Called by JDeparser at the end of the process.
|
OutputStream |
openBinary(JPackage pkg,
String fileName)
Called by JDeparser to store the specified file.
|
openSource
public ZipCodeWriter(OutputStream target)
target
- Zip file will be written to this stream.public OutputStream openBinary(JPackage pkg, String fileName) throws 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"IOException
public void close() throws IOException
CodeWriter
close
in class CodeWriter
IOException
Copyright © 2024 JBoss by Red Hat. All rights reserved.