public final class AsyncContentUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.reactivex.Single<byte[]> |
readAllBytes(AsyncContentProvider asyncContentProvider)
Reads all chunks from an
AsyncContentProvider and returns the result as one byte array. |
static io.reactivex.Single<String> |
readString(AsyncContentProvider asyncContentProvider,
Charset charset)
Reads all chunks from a provider and converts them to string.
|
public static io.reactivex.Single<byte[]> readAllBytes(AsyncContentProvider asyncContentProvider)
AsyncContentProvider and returns the result as one byte array.asyncContentProvider - The provider that is consumed.public static io.reactivex.Single<String> readString(AsyncContentProvider asyncContentProvider, Charset charset)
asyncContentProvider - The provider that is consumed.charset - The character encoding that is used when the byte array is converted to a string.Copyright © 2011–2019 Everit Kft.. All rights reserved.