com.sun.codemodel.writer.ZipCodeWriter类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(78)

本文整理了Java中com.sun.codemodel.writer.ZipCodeWriter类的一些代码示例,展示了ZipCodeWriter类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipCodeWriter类的具体详情如下:
包路径:com.sun.codemodel.writer.ZipCodeWriter
类名称: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;
}

相关文章