@Override
    public void read(DataInput stream) throws IOException {
      long offset = StreamUtil.getOffset(stream);
      int skip = bytesToSkip(offset);
      if (skip > 0) {
        stream.skipBytes(skip);
      }
      //resetOffsets(offset);
    }
@Override
    public void read(DataInput stream)