public final class Bytes extends Object
Modifier and Type | Method and Description |
---|---|
static rx.Observable.Transformer<byte[],byte[]> |
collect() |
static rx.Observable<byte[]> |
from(File file) |
static rx.Observable<byte[]> |
from(File file,
int size) |
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 between 1 and 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
between 1 and size
bytes.is
- input stream of bytessize
- max emitted byte array sizepublic static rx.Observable<byte[]> from(File file)
public static rx.Observable<byte[]> from(File file, int size)
public 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)
public static rx.Observable.Transformer<byte[],byte[]> collect()
Copyright © 2013–2016. All rights reserved.