@Override
  public int readByteBuffer(FSDataInputStream file, ByteBuffer dest) throws IOException {
    int pos = dest.position();
    int result = file.read(dest);
    if (result > 0) {
      // Ensure this explicitly since versions before 2.7 read doesn't do it.
      dest.position(pos + result);
    }
    return result;
  }
Compares two encryption key strengths.

@param zone1 First  EncryptionZone to compare
@param zone2 Second EncryptionZone to compare
@return 1 if zone1 is stronger; 0 if zones are equal; -1 if zone1 is weaker.
@throws IOException If an error occurred attempting to get key metadata
shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java