java.util.zip.GZIPInputStream.skip()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(114)

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

GZIPInputStream.skip介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

long bytesSkipped = 0;
while ( bytesSkipped < bytesToSkip ) {
 long n = data.gzis.skip( bytesToSkip - bytesSkipped );
 if ( n <= 0 ) {

代码示例来源:origin: pentaho/pentaho-kettle

long n = data.gzis.skip( bytesToSkip - bytesSkipped );
if ( n <= 0 ) {

代码示例来源:origin: org.codehaus.izpack/izpack-core

/**
 * (non-Javadoc)
 *
 * @see java.io.InputStream#skip(long)
 */
@Override
public long skip(long n) throws IOException
{
  long skipped = zippedInputStream.skip(n);
  long count = skipped;
  while (skipped != -1 && skipped < n)
  {
    n -= skipped;
    skipped = zippedInputStream.skip(n);
    if (skipped != -1)
    {
      count += skipped;
    }
  }
  if (count != -1)
  {
    filePointer += count;
  }
  return count;
}

代码示例来源:origin: ctripcorp/vi

gzipInputStream.skip(skipCount);
  gzipInputStream.read(raw, 0, readCount);
}catch (Throwable e){

代码示例来源:origin: jdmp/java-data-mining-package

GZIPInputStream gis2 = new GZIPInputStream(fis2);
gis1.skip(16);
gis2.skip(8);

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

toSkip -= gzipStream.skip(toSkip);

代码示例来源:origin: openmicroscopy/bioformats

toSkip -= gzipStream.skip(toSkip);

代码示例来源:origin: io.scif/scifio

toSkip -= gzipStream.skip(toSkip);

代码示例来源:origin: scifio/scifio

toSkip -= gzipStream.skip(toSkip);

相关文章