Package org.openqa.selenium.remote.http
Interface Contents.Supplier
- All Superinterfaces:
AutoCloseable
,Supplier<InputStream>
- Enclosing class:
- Contents
A supplier that can be called multiple times, each invocation must return a new InputStream
ready to read. The number of bytes that can be read from the InputStream must be identical to
the number returned by the length method.
-
Method Summary
-
Method Details
-
length
int length()- Returns:
- the number of bytes that can be read from the InputStream returned by calling the get method.
-
close
Release the related resources, if any.- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
- on I/O failure
-