示例#1
0
 public void write(DataOutput out) throws IOException {
   input.write(out);
   Text.writeString(out, output);
 }
示例#2
0
 /**
  * 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());
 }