Interface BinaryRequestBody
- All Superinterfaces:
AutoCloseable, Closeable
Streamed binary request data with Content-Type
application/octet-stream.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()This method may be overridden to return resources.static BinaryRequestBodyof(InputStream inputStream) Create aBinaryRequestBodyfrom anInputStreaminstance.default booleanReturnsvoidwrite(OutputStream requestBody) Invoked to write data to the request stream.
-
Method Details
-
write
Invoked to write data to the request stream.- Throws:
IOException
-
repeatable
default boolean repeatable()Returnstrue
ifwrite(OutputStream)may be invoked multiple times. -
close
This method may be overridden to return resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
of
Create aBinaryRequestBodyfrom anInputStreaminstance.
-