code: private static int readShortLength(DataInput in) throws IOException {
          int length = (in.readByte() & 0xFF) << 8;
          return length | (in.readByte() & 0xFF);
      }
docs: /* @return An unsigned short in an integer.