Code example for ObjectInput

Methods: readBoolean, readLong, readObject

0
         output.writeLong(er.replayTime);
      } 
 
      @Override 
      public ExtendedResponse readObject(ObjectInput input) throws IOException, ClassNotFoundException {
         boolean replayIgnoredRequests = input.readBoolean();
         Response response = (Response) input.readObject();
         //SEBDIE 
         long replay = input.readLong();
          ExtendedResponse er=  new ExtendedResponse(response, replayIgnoredRequests);
          er.setReplayTime(replay);
         return  er;
      } 
 
      @Override 
      public Integer getId() {
         return Ids.EXTENDED_RESPONSE; 
      } 
 
      @Override 
      public Set<Class<? extends ExtendedResponse>> getTypeClasses() {