code: public static int readInt(DataInput in) throws IOException {
          byte len=in.readByte();
          if(len == 0)
              return 0;
          return makeInt(in, len);
      }
docs: Reads an int from an input stream
  @param in the input stream
  @return the int read from the input stream