public void writeShort(short s) throws IOException {
    out.write(Type.SHORT.code);
    out.writeShort(s);
  }
Writes a short as a typed bytes sequence.

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