本文整理了Java中com.sun.codemodel.writer.ZipCodeWriter
类的一些代码示例,展示了ZipCodeWriter
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipCodeWriter
类的具体详情如下:
包路径:com.sun.codemodel.writer.ZipCodeWriter
类名称:ZipCodeWriter
[英]Writes all the files into a zip file.
[中]将所有文件写入zip文件。
代码示例来源:origin: com.unquietcode.tools.jcodemodel/codemodel
public OutputStream openBinary(JPackage pkg, String fileName) throws IOException {
String name = fileName;
if(!pkg.isUnnamed()) name = toDirName(pkg)+name;
zip.putNextEntry(new ZipEntry(name));
return filter;
}
代码示例来源:origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc
os = new FileOutputStream(opt.targetDir);
cw = opt.createCodeWriter(new ZipCodeWriter(os));
} else
cw = opt.createCodeWriter();
代码示例来源:origin: sun-jaxb/jaxb-xjc
os = new FileOutputStream(opt.targetDir);
cw = opt.createCodeWriter(new ZipCodeWriter(os));
} else
cw = opt.createCodeWriter();
代码示例来源:origin: com.sun.codemodel/codemodel
public OutputStream openBinary(JPackage pkg, String fileName) throws IOException {
String name = fileName;
if(!pkg.isUnnamed()) name = toDirName(pkg)+name;
zip.putNextEntry(new ZipEntry(name));
return filter;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc
os = new FileOutputStream(opt.targetDir);
cw = opt.createCodeWriter(new ZipCodeWriter(os));
} else
cw = opt.createCodeWriter();
代码示例来源:origin: org.glassfish.metro/webservices-tools
@Override
public OutputStream openBinary(JPackage pkg, String fileName) throws IOException {
final String name = pkg == null || pkg.isUnnamed() ? fileName : toDirName(pkg)+fileName;
zip.putNextEntry(new ZipEntry(name));
return filter;
}
代码示例来源:origin: apache/servicemix-bundles
os = new FileOutputStream(opt.targetDir);
cw = opt.createCodeWriter(new ZipCodeWriter(os));
} else
cw = opt.createCodeWriter();
代码示例来源:origin: sun-jaxb/jaxb-xjc
public OutputStream openBinary(JPackage pkg, String fileName) throws IOException {
String name = fileName;
if(!pkg.isUnnamed()) name = toDirName(pkg)+name;
zip.putNextEntry(new ZipEntry(name));
return filter;
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
os = new FileOutputStream(opt.targetDir);
cw = opt.createCodeWriter(new ZipCodeWriter(os));
} else
cw = opt.createCodeWriter();
代码示例来源:origin: javaee/jaxb-v2
@Override
public OutputStream openBinary(JPackage pkg, String fileName) throws IOException {
final String name = pkg == null || pkg.isUnnamed() ? fileName : toDirName(pkg)+fileName;
zip.putNextEntry(new ZipEntry(name));
return filter;
}
内容来源于网络,如有侵权,请联系作者删除!