コード例 #1
0
 @Override
 public void progressChanged(ProgressEvent progressEvent) {
   logger.debug(
       "progressChanged() "
           + progressEvent.getEventType()
           + " bytes:"
           + progressEvent.getBytes()
           + " bytesTransferred: "
           + progressEvent.getBytesTransferred());
 }
 @Override
 public void progressChanged(ProgressEvent progressEvent) {
   ProgressEventType type = progressEvent.getEventType();
   if (type.isByteCountEvent()) return;
   if (type != types[count]) {
     throw new AssertionError(
         "Expect event type " + types[count] + " but got " + progressEvent.getEventType());
   }
   count++;
 }