Exemplo n.º 1
0
 public void write(DataOutput out) throws IOException {
   input.write(out);
   Text.writeString(out, output);
 }
Exemplo n.º 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());
 }