public void writeInt(int i) throws IOException {
    out.write(Type.INT.code);
    out.writeInt(i);
  }
Writes an integer as a typed bytes sequence.

@param i
         the integer to be written
@throws IOException
contrib/src/java/org/apache/hadoop/hive/contrib/util/typedbytes/TypedBytesOutput.java