Interface ProgressListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void update(long bytesRead, int percentComplete) This function is called with progress information for a response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • update

         abstract void update(long bytesRead, int percentComplete)

        This function is called with progress information for a response. This function only gets invoked once for each percent.

        Parameters:
        bytesRead - The total number of bytes read.
        percentComplete - The percent complete is always rounded down, so when this value is 100 all bytes have been read (though the stream might not be closed).