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> T
static Supplier<InputStream>
memoize
(Supplier<InputStream> delegate) static Reader
reader
(Supplier<InputStream> supplier, Charset charset) static Reader
reader
(org.openqa.selenium.remote.http.HttpMessage<?> message) static String
static Supplier<InputStream>
string
(CharSequence value, Charset charset) static String
string
(Supplier<InputStream> supplier, Charset charset) static String
string
(org.openqa.selenium.remote.http.HttpMessage<?> message) static Reader
utf8Reader
(Supplier<InputStream> supplier) static Supplier<InputStream>
utf8String
(CharSequence value) static String
utf8String
(Supplier<InputStream> supplier)
-
Method Details
-
empty
-
utf8String
-
string
-
bytes
-
bytes
-
utf8String
-
string
-
string
-
utf8Reader
-
reader
-
reader
-
asJson
- Returns:
- an
InputStream
containing the object converted to a UTF-8 JSON string.
-
fromJson
-
memoize
-
string
- Throws:
IOException
-