gpt4 book ai didi

de.schlichtherle.truezip.zip.ZipOutputStream.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 13:09:39 27 4
gpt4 key购买 nike

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

ZipOutputStream.<init>介绍

[英]Constructs a ZIP output stream which decorates the given output stream using the "UTF-8" charset.
[中]构造一个ZIP输出流,它使用“UTF-8”字符集装饰给定的输出流。

代码示例

代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip

protected ZipOutputStream newZipOutputStream(
    OutputStream out,
    ZipFile appendee)
throws ZipException {
  return new ZipOutputStream(out, appendee);
}

代码示例来源:origin: digital-preservation/droid

@SuppressWarnings("unchecked")
@Override
protected void handleStart(final File startDirectory, final Collection results)
  throws IOException {
  //out = new ZipArchiveOutputStream(new BufferedOutputStream(new FileOutputStream(destination)));
  out = new ZipOutputStream(Files.newOutputStream(destination));
  out.setMethod(ZipEntry.DEFLATED); 
}

代码示例来源:origin: uk.gov.nationalarchives/droid-results

@SuppressWarnings("unchecked")
@Override
protected void handleStart(File startDirectory, Collection results)
  throws IOException {
  //out = new ZipArchiveOutputStream(new BufferedOutputStream(new FileOutputStream(destination)));
  out = new ZipOutputStream(new FileOutputStream(destination));
  out.setMethod(ZipEntry.DEFLATED); 
}

代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip

protected ZipOutputStream newZipOutputStream(OutputStream out)
throws IOException {
  return new ZipOutputStream(out);
}

代码示例来源:origin: pl.edu.icm.cocos/cocos-services

private ZipOutputStream getZipFileOutputStream() throws IOException {
  String fileName = query.getId().toString();
  if (query.getOffset() == null || query.getOffset() == 0l) {
    OutputStream stream = fileStorage.createFile(query.getUser(), fileName);
    return new ZipOutputStream(stream, Charsets.UTF_8);
  }
  OutputStream stream = fileStorage.appendFile(query.getUser(), fileName);
  // FIXME Is there any other way to append archive file?
  ZipFile zipFile = new ZipFile(fileStorage.readFile(query.getUser(), fileName));
  return new ZipOutputStream(stream, zipFile);
}

代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip

@Override
protected ZipOutputStream newZipOutputStream(
    OutputStream out, Charset charset)
throws IOException {
  ZipOutputStream res = new ZipOutputStream(out, charset);
  res.setCryptoParameters(new WinZipAesCryptoParameters());
  return res;
}

代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip

@Override
protected ZipOutputStream newZipOutputStream(
    OutputStream out,
    ZipFile appendee)
throws ZipException {
  ZipOutputStream res = new ZipOutputStream(out, appendee);
  res.setCryptoParameters(new WinZipAesCryptoParameters());
  return res;
}

代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip

@Override
protected ZipOutputStream newZipOutputStream(OutputStream out)
throws IOException {
  ZipOutputStream res = new ZipOutputStream(out);
  res.setCryptoParameters(new WinZipAesCryptoParameters());
  return res;
}

代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip

HashMaps.initialCapacity(NUM_ENTRIES));
final ZipOutputStream zos = new ZipOutputStream(
    buffer.getOutputSocket().newOutputStream());
for (int i = FIRST_ENTRY; i <= LAST_ENTRY; i++) {

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com