gpt4 book ai didi

loci.common.ZipHandle.populateLength()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 07:51:31 27 4
gpt4 key购买 nike

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

ZipHandle.populateLength介绍

暂无

代码示例

代码示例来源:origin: ome/formats-common

populateLength();

代码示例来源:origin: org.openmicroscopy/ome-common

populateLength();

代码示例来源:origin: ome/formats-common

/**
 * Constructs a new ZipHandle corresponding to the given entry of the
 * specified Zip file.
 *
 * @throws HandleException if the given file is not a Zip file.
 */
public ZipHandle(String file, ZipEntry entry) throws IOException {
 super();
 this.file = file;
 in = openStream(file);
 zip = new ZipInputStream(in);
 entryName = entry.getName();
 entryCount = 1;
 seekToEntry();
 resetStream();
 length = entry.getSize();
 if (length <= 0) {
  populateLength();
 }
}

代码示例来源:origin: org.openmicroscopy/ome-common

/**
 * Constructs a new ZipHandle corresponding to the given entry of the
 * specified Zip file.
 *
 * @param file a name that can be passed to
 *        {@link Location#getHandle(String, boolean, boolean)}
 * @param entry the specific entry in the Zip file to be opened
 * @throws HandleException if the given file is not a Zip file.
 * @see ZipEntry
 */
public ZipHandle(String file, ZipEntry entry) throws IOException {
 super();
 this.file = file;
 in = openStream(file);
 zip = new ZipInputStream(in);
 entryName = entry.getName();
 entryCount = 1;
 seekToEntry();
 resetStream();
 length = entry.getSize();
 if (length <= 0) {
  populateLength();
 }
}

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