public final class Bytes extends Object
| Modifier and Type | Method and Description |
|---|---|
static rx.Observable<byte[]> |
from(InputStream is)
Returns an Observable stream of byte arrays from the given
InputStream of 8192 bytes. |
static rx.Observable<byte[]> |
from(InputStream is,
int size)
Returns an Observable stream of byte arrays from the given
InputStream of size bytes. |
static rx.Observable<ZippedEntry> |
unzip(File file) |
static rx.Observable<ZippedEntry> |
unzip(InputStream is) |
static rx.Observable<ZippedEntry> |
unzip(ZipInputStream zis) |
public static rx.Observable<byte[]> from(InputStream is, int size)
InputStream of size bytes. The final byte array may be less
than size bytes.is - input stream of bytessize - max emitted byte array sizepublic static rx.Observable<byte[]> from(InputStream is)
InputStream of 8192 bytes. The final byte array may be less
than 8192 bytes.is - input stream of bytespublic static rx.Observable<ZippedEntry> unzip(File file)
public static rx.Observable<ZippedEntry> unzip(InputStream is)
public static rx.Observable<ZippedEntry> unzip(ZipInputStream zis)
Copyright © 2013–2016. All rights reserved.