本文整理了Java中com.sun.codemodel.writer.ZipCodeWriter.toDirName()
方法的一些代码示例,展示了ZipCodeWriter.toDirName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipCodeWriter.toDirName()
方法的具体详情如下:
包路径:com.sun.codemodel.writer.ZipCodeWriter
类名称:ZipCodeWriter
方法名:toDirName
[英]Converts a package name to the directory name.
[中]将包名转换为目录名。
代码示例来源: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: 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.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: 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: 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;
}
内容来源于网络,如有侵权,请联系作者删除!