Code example for DataOutput

Methods: writeBooleanwriteUTF

0
    pid = in.readUTF();
  } 
 
  @Override 
  public void write(DataOutput out) throws IOException {
    out.writeBoolean(slotTaken);
    out.writeBoolean(wasKilled);
    conf.write(out);
    out.writeUTF(user);
    out.writeBoolean(isTaskCleanupTask);
    if (pid != null) {
      out.writeUTF(pid);
    } else { 
      out.writeUTF("");
    } 
    status.write(out);
  } 
 
  static class MapTTTaskInfo extends TTTaskInfoImpl { 
 
    public MapTTTaskInfo() { 
Stop searching for code, let great code find you!  Add Codota to your java IDE