com.coinbase.cdp.core
Constructor Details
InputStreamRequestBody
contentType (okhttp3.MediaType) - the MediaType of the content, or null if not known
inputStream (InputStream) - the InputStream containing the data to be sent
Throws:
[NullPointerException](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html "class or interface in java.lang") - if inputStream is null
Method Details
contentType
okhttp3.MediaType - the MediaType of the content, or null if not specified
contentLength
-1 because a general InputStream has no reliable total length.
Returns:
long - -1, indicating an unknown content length
writeTo
sink (okio.BufferedSink) - the BufferedSink to write the content to
Throws:
[IOException](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html "class or interface in java.io") - if an I/O error occurs during writing
Returns:
void