Suppose I have an enumeration:
public enum SomeEnumType implements Writable { A(0), B(1); private int value; private SomeEnumType(int value) { th
WritableUtils has convenience methods that make this easier.
WritableUtils.writeEnum(dataOutput,enumData); enumData = WritableUtils.readEnum(dataInput,MyEnum.class);