@Override public long getFilePointer() { ensureOpen(); return in.position(); }
@Override public short readShort() throws IOException { ensureOpen(); return in.readShort(); }
@Override public int readZInt() throws IOException { ensureOpen(); return in.readZInt(); }
@Override public long readVLong() throws IOException { ensureOpen(); return in.readVLong(); }
@Override public short readShort(long pos) throws IOException { ensureOpen(); return in.readShort(pos); }
@Override public long readLong(long pos) throws IOException { ensureOpen(); return in.readLong(pos); }
@Override public void readBytes(byte[] b, int offset, int len) throws IOException { ensureOpen(); in.readBytes(b, offset, len); }
@Override public void skipBytes(long numBytes) throws IOException { ensureOpen(); super.skipBytes(numBytes); }
@Override public byte readByte(long pos) throws IOException { ensureOpen(); return in.readByte(pos); }
@Override public void seek(long pos) throws IOException { ensureOpen(); in.seek(pos); }
@Override public int readInt() throws IOException { ensureOpen(); return in.readInt(); }
@Override public long readLong() throws IOException { ensureOpen(); return in.readLong(); }
@Override public String readString() throws IOException { ensureOpen(); return in.readString(); }
@Override public byte readByte() throws IOException { ensureOpen(); return in.readByte(); }
@Override public RandomAccessInput randomAccessSlice(long offset, long length) throws IOException { ensureOpen(); return slice("", offset, length); }
@Override public int readVInt() throws IOException { ensureOpen(); return in.readVInt(); }
@Override public Map<String, String> readMapOfStrings() throws IOException { ensureOpen(); return in.readMapOfStrings(); }
@Override public int readInt(long pos) throws IOException { ensureOpen(); return in.readInt(pos); }
@Override public long readZLong() throws IOException { ensureOpen(); return in.readZLong(); }
@Override public IndexInput clone() { ensureOpen(); ByteBuffersIndexInput cloned = new ByteBuffersIndexInput(in.slice(0, in.size()), "(clone of) " + toString()); try { cloned.seek(getFilePointer()); } catch (IOException e) { throw new UncheckedIOException(e); } return cloned; }