pl.edu.icm.yadda.export.output.ZipOutput.<init>()方法的使用及代码示例

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

本文整理了Java中pl.edu.icm.yadda.export.output.ZipOutput.<init>()方法的一些代码示例,展示了ZipOutput.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipOutput.<init>()方法的具体详情如下:
包路径:pl.edu.icm.yadda.export.output.ZipOutput
类名称:ZipOutput
方法名:<init>

ZipOutput.<init>介绍

暂无

代码示例

代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import

protected DumpOutput resolveOutput(String format, OutputStream os)
    throws IOException {
  DumpOutput output;
  if (BasicPackConstants.FORMAT_ZIP.equals(format)) {
    output = new ZipOutput(os);
  } else if (BasicPackConstants.FORMAT_TGZ.equals(format)) {
    output = new TgzOutput(os);
  } else if (BasicPackConstants.FORMAT_TAR.equals(format)) {
    output = new TarOutput(os);
  } else {
    throw new IllegalStateException("Unknown format expected " + format);
  }
  return output;
}

代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import

protected DumpOutput resolveOutput(String format, String outputFile)
    throws IOException {
  DumpOutput output;
  if (BasicPackConstants.FORMAT_ZIP.equals(format)) {
    output = new ZipOutput(outputFile);
  } else if (BasicPackConstants.FORMAT_TGZ.equals(format)) {
    output = new TgzOutput(outputFile);
  } else if (BasicPackConstants.FORMAT_TAR.equals(format)) {
    output = new TarOutput(outputFile);
  } else {
    throw new IllegalStateException("Unknown format expected " + format);
  }
  return output;
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-user

/** Exports user catalog to a new file in zip file format. This is
 * convenience shortcut for @see exportUserCatalog(DumpOutput output, int chunkSize)
 * method. Newly created archive contains a number of XML files in directory
 * aal representing users, groups and roles from archive.
 * @param zipFileName output file name
 * @throws IOException
 * @throws ServiceException
 */
public void exportUserCatalogToZip(String zipFileName)
    throws IOException, ServiceException {
  ZipOutput output = new ZipOutput(zipFileName);
  exportUserCatalog(output, DEFAULT_CHUNK_SIZE);
  output.close();
}

代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core

private void sendUpdateReport(SaveOperation operation, Ancestors ancestors, WebUserDetails userDetails, String title) throws IOException, RepositoryException {
  ZipOutput zipOutput = new ZipOutput(os);
  for (String partType:operation.getObject().getPartTypes()) {
    if ("BWMETA1".equals(partType)) {

相关文章

ZipOutput类方法