本文整理了Java中java.util.zip.ZipInputStream.skip()
方法的一些代码示例,展示了ZipInputStream.skip()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipInputStream.skip()
方法的具体详情如下:
包路径:java.util.zip.ZipInputStream
类名称:ZipInputStream
方法名:skip
[英]Skips specified number of bytes in the current ZIP entry.
[中]跳过当前ZIP条目中指定的字节数。
代码示例来源:origin: cSploit/android
retLong = fis.skip((i / 4) * 768 - checkLong);
if(retLong == -1){
setErrorMessage("Error while processing online keys.");
代码示例来源:origin: baratine/baratine
@Override
public long skip(long n)
throws IOException
{
return _zIs.skip(n);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-jboss4
@Override
public long skip(long n) throws IOException {
return zis.skip(n);
}
}
代码示例来源:origin: org.openl.rules/org.openl.rules.ruleservice.deployer
@Override
public long skip(long n) throws IOException {
return source.skip(n);
}
代码示例来源:origin: openl-tablets/openl-tablets
@Override
public long skip(long n) throws IOException {
return source.skip(n);
}
代码示例来源:origin: asakusafw/asakusafw
@Override
public long skip(long n) throws IOException {
return zipped.skip(n);
}
代码示例来源:origin: asakusafw/asakusafw
@Override
public long skip(long n) throws IOException {
return zipped.skip(n);
}
代码示例来源:origin: stackoverflow.com
skip -= is.skip(Math.min(skip, 512));
代码示例来源:origin: openmicroscopy/bioformats
private void readPixels(byte[] rowBuf, RandomAccessInputStream in, ZipInputStream codec, int skip)
throws IOException
{
if (codec == null) {
in.skipBytes(skip);
in.read(rowBuf);
}
else {
codec.skip(skip);
int nread = 0;
while (nread < rowBuf.length) {
int n = codec.read(rowBuf, nread, rowBuf.length - nread);
nread += n;
if (n <= 0) {
break;
}
}
}
}
代码示例来源:origin: ome/formats-gpl
private void readPixels(byte[] rowBuf, RandomAccessInputStream in, ZipInputStream codec, int skip)
throws IOException
{
if (codec == null) {
in.skipBytes(skip);
in.read(rowBuf);
}
else {
codec.skip(skip);
int nread = 0;
while (nread < rowBuf.length) {
int n = codec.read(rowBuf, nread, rowBuf.length - nread);
nread += n;
if (n <= 0) {
break;
}
}
}
}
代码示例来源:origin: openmicroscopy/bioformats
codec = new ZipInputStream(in);
codec.getNextEntry();
codec.skip(channel * planeSize);
codec = new ZipInputStream(in);
codec.getNextEntry();
codec.skip(channel * planeSize + y * paddedWidth * bpp * times);
codec.skip(bpp * times * (paddedWidth - x - w));
代码示例来源:origin: ome/formats-gpl
codec = new ZipInputStream(in);
codec.getNextEntry();
codec.skip(channel * planeSize);
codec = new ZipInputStream(in);
codec.getNextEntry();
codec.skip(channel * planeSize + y * paddedWidth * bpp * times);
codec.skip(bpp * times * (paddedWidth - x - w));
内容来源于网络,如有侵权,请联系作者删除!