public void write(DataOutput out) throws IOException { input.write(out); Text.writeString(out, output); }
/** * writes String value of enum to DataOutput. * * @param out Dataoutput stream * @param enumVal enum value * @throws IOException */ public static void writeEnum(DataOutput out, Enum<?> enumVal) throws IOException { Text.writeString(out, enumVal.name()); }