Code example for DataOutput

Methods: writeBoolean

0
      wasRecoveredOnStartup = in.readBoolean();
   } 
 
   @Override 
   public void write(DataOutput out) throws IOException {
      block.write(out);
      out.writeBoolean(wasRecoveredOnStartup);
   } 
 
   public Block getBlock() { 
      return block;
   } 
 
   public boolean wasRecoveredOnStartup() { 
      return wasRecoveredOnStartup;
   } 
 
   public String toString() {
      return "BlockRecoveryInfo(block=" + block + " wasRecoveredOnStartup=" + wasRecoveredOnStartup + ")";
   } 
}