gpt4 book ai didi

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

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

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

ZipHandle.openStream介绍

暂无

代码示例

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

@Override
protected void resetStream() throws IOException {
 if (stream != null) stream.close();
 if (in != null) {
  in.close();
  in = openStream(file);
 }
 if (zip != null) zip.close();
 zip = new ZipInputStream(in);
 if (entryName != null) seekToEntry();
 stream = new DataInputStream(new BufferedInputStream(
  zip, RandomAccessInputStream.MAX_OVERHEAD));
 stream.mark(RandomAccessInputStream.MAX_OVERHEAD);
}

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

@Override
protected void resetStream() throws IOException {
 if (stream != null) stream.close();
 if (in != null) {
  in.close();
  in = openStream(file);
 }
 if (zip != null) zip.close();
 zip = new ZipInputStream(in);
 if (entryName != null) seekToEntry();
 stream = new DataInputStream(new BufferedInputStream(
  zip, RandomAccessInputStream.MAX_OVERHEAD));
 stream.mark(RandomAccessInputStream.MAX_OVERHEAD);
}

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

this.file = file;
in = openStream(file);
zip = new ZipInputStream(in);
entryName = null;

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

this.file = file;
in = openStream(file);
zip = new ZipInputStream(in);
entryName = null;

代码示例来源: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();
 }
}

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