Class BytesContentSupplier
java.lang.Object
org.openqa.selenium.remote.http.BytesContentSupplier
- All Implemented Interfaces:
AutoCloseable, Supplier<InputStream>, Contents.Supplier
-
Constructor Details
-
BytesContentSupplier
public BytesContentSupplier(byte[] bytes)
-
-
Method Details
-
get
- Specified by:
getin interfaceSupplier<InputStream>
-
length
public long length()- Specified by:
lengthin interfaceContents.Supplier- Returns:
- the number of bytes that can be read from the InputStream returned by calling the get method.
-
close
public void close()Description copied from interface:Contents.SupplierRelease the related resources, if any.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceContents.Supplier
-
toString
-
contentAsString
- Specified by:
contentAsStringin interfaceContents.Supplier
-