Package org.openqa.selenium.remote.http
Class Contents
java.lang.Object
org.openqa.selenium.remote.http.Contents
-
Method Summary
Modifier and TypeMethodDescriptionstatic Supplier<InputStream>static Supplier<InputStream>bytes(byte[] bytes) static byte[]bytes(Supplier<InputStream> supplier) static Supplier<InputStream>empty()static <T> Tstatic Supplier<InputStream>memoize(Supplier<InputStream> delegate) static Readerreader(Supplier<InputStream> supplier, Charset charset) static Readerreader(org.openqa.selenium.remote.http.HttpMessage<?> message) static Stringstatic Supplier<InputStream>string(CharSequence value, Charset charset) static Stringstring(Supplier<InputStream> supplier, Charset charset) static Stringstring(org.openqa.selenium.remote.http.HttpMessage<?> message) static Readerutf8Reader(Supplier<InputStream> supplier) static Supplier<InputStream>utf8String(CharSequence value) static Stringutf8String(Supplier<InputStream> supplier)
-
Method Details
-
empty
-
utf8String
-
string
-
bytes
-
bytes
-
utf8String
-
string
-
string
-
utf8Reader
-
reader
-
reader
-
asJson
- Returns:
- an
InputStreamcontaining the object converted to a UTF-8 JSON string.
-
fromJson
-
memoize
-
string
- Throws:
IOException
-