Interface IProgressListener

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IProgressListener
    The IProgressListener may be used to display a progress bar or do stuff like that.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void update​(long nBytesRead, long nContentLength, int nItems)
      Updates the listeners status information.
    • Method Detail

      • update

        void update​(@Nonnegative
                    long nBytesRead,
                    @CheckForSigned
                    long nContentLength,
                    @Nonnegative
                    int nItems)
        Updates the listeners status information.
        Parameters:
        nBytesRead - The total number of bytes, which have been read so far. Always ≥ 0.
        nContentLength - The total number of bytes, which are being read. May be -1, if this number is unknown.
        nItems - The number of the field, which is currently being read. (0 = no item so far, 1 = first item is being read, ...)