public static final class Content.From extends Object implements Content
Content.From| Constructor and Description |
|---|
From(byte[] array)
Ctor.
|
From(long size,
org.reactivestreams.Publisher<ByteBuffer> publisher)
Ctor.
|
From(Optional<Long> size,
org.reactivestreams.Publisher<ByteBuffer> publisher)
Ctor.
|
From(org.reactivestreams.Publisher<ByteBuffer> publisher)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Long> |
size()
Provides size of content in bytes if known.
|
void |
subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber) |
public From(byte[] array)
array - Content bytes.public From(org.reactivestreams.Publisher<ByteBuffer> publisher)
publisher - Content bytes.public From(long size,
org.reactivestreams.Publisher<ByteBuffer> publisher)
size - Total content size in bytes.publisher - Content bytes.public From(Optional<Long> size, org.reactivestreams.Publisher<ByteBuffer> publisher)
size - Total content size in bytes, if known.publisher - Content bytes.public void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber)
subscribe in interface org.reactivestreams.Publisher<ByteBuffer>Copyright © 2019–2020 jcabi.com. All rights reserved.