public final class FileAsyncRequestBody extends Object implements AsyncRequestBody
AsyncRequestBody
that reads data from a file.Modifier and Type | Class and Description |
---|---|
static interface |
FileAsyncRequestBody.Builder
A builder for
FileAsyncRequestBody . |
Modifier and Type | Method and Description |
---|---|
static FileAsyncRequestBody.Builder |
builder() |
long |
contentLength() |
void |
subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty, fromByteBuffer, fromBytes, fromFile, fromFile, fromString, fromString
public long contentLength()
contentLength
in interface AsyncRequestBody
public void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)
subscribe
in interface org.reactivestreams.Publisher<ByteBuffer>
public static FileAsyncRequestBody.Builder builder()
FileAsyncRequestBody
.Copyright © 2018. All rights reserved.