Code example for DataInput

Methods: readBoolean

0
      this.wasRecoveredOnStartup = wasRecoveredOnStartup;
   } 
 
   @Override 
   public void readFields(DataInput in) throws IOException {
      block.readFields(in);
      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;