private SeekInputStream wrap(SeekInputStream input, long pos, int cache)
throws IOException {
input.position(pos);
SeekInputStream r = new SafeSeekInputStream(input);
r = new OriginSeekInputStream(r, pos);
r = new BufferedSeekInputStream(r, cache);
return r;
}