Interface FileItemStream

All Superinterfaces:
FileItemHeadersSupport
All Known Implementing Classes:
FileItemStreamImpl

public interface FileItemStream extends FileItemHeadersSupport

This interface provides access to a file or form item that was received within a multipart/form-data POST request. The items contents are retrieved by calling openStream().

Instances of this class are created by accessing the iterator, returned by FileUploadBase.getItemIterator(RequestContext).

Note: There is an interaction between the iterator and its associated instances of FileItemStream: By invoking Iterator.hasNext() on the iterator, you discard all data, which hasn't been read so far from the previous data.