MultipartStream.ProgressNotifier (Apache Tomcat 10.1.48 API Documentation)
Description: declaration: package: org.apache.tomcat.util.http.fileupload, class: MultipartStream, class: ProgressNotifier

# Class MultipartStream.ProgressNotifier

java.lang.Object
org.apache.tomcat.util.http.fileupload.MultipartStream.ProgressNotifier

Enclosing class:
  `MultipartStream`

public static class MultipartStream.ProgressNotifier extends Object
Internal class, which is used to invoke the `ProgressListener`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ProgressNotifier(ProgressListener listener, long contentLength)`
  Creates a new instance with the given listener and content length.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `noteItem()`
  Called to indicate, that a new file item has been detected.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ProgressNotifier

    public ProgressNotifier(ProgressListener listener, long contentLength)
    Creates a new instance with the given listener and content length.
    Parameters:
      `listener` - The listener to invoke.
      `contentLength` - The expected content length.

- ## Method Details

  - ### noteItem

    public void noteItem()
    Called to indicate, that a new file item has been detected.