moveBytes(gzIn, fileOutput, -1, -1, 1024);
}
}catch(IOException e){
- throw e;
+ throw new IOException ("Gunzip", e);
}
}
}
public long moveBytes(InputStream input, OutputStream output, long off, long len, int bufsize) throws IOException {
- long skipped=0;
- if (off > 0)
+ /* long skipped=0;
+ if (off > 0)
skipped = input.skip(off); // check if skipped is same as off
-
+ */
long totalNum = 0;
byte[] buf = new byte[bufsize];
output.write(buf, 0, readNum);
totalNum += readNum;
}
- buf = null;
return totalNum;
}