|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectrx.observables.StringObservable
public class StringObservable
| Nested Class Summary | |
|---|---|
static class |
StringObservable.Line
|
| Constructor Summary | |
|---|---|
StringObservable()
|
|
| Method Summary | ||
|---|---|---|
static rx.Observable<StringObservable.Line> |
byLine(rx.Observable<java.lang.String> source)
Splits the Observable of Strings by lines and numbers them (zero based index) |
|
static rx.Observable<java.lang.String> |
decode(rx.Observable<byte[]> src,
java.nio.charset.Charset charset)
Decodes a stream the multibyte chunks into a stream of strings that works on infinite streams and where handles when a multibyte character spans two chunks. |
|
static rx.Observable<java.lang.String> |
decode(rx.Observable<byte[]> src,
java.nio.charset.CharsetDecoder charsetDecoder)
Decodes a stream the multibyte chunks into a stream of strings that works on infinite streams and where it handles when a multibyte character spans two chunks. |
|
static rx.Observable<java.lang.String> |
decode(rx.Observable<byte[]> src,
java.lang.String charsetName)
Decodes a stream the multibyte chunks into a stream of strings that works on infinite streams and where handles when a multibyte character spans two chunks. |
|
static rx.Observable<byte[]> |
encode(rx.Observable<java.lang.String> src,
java.nio.charset.Charset charset)
Encodes a possible infinite stream of strings into a Observable of byte arrays. |
|
static rx.Observable<byte[]> |
encode(rx.Observable<java.lang.String> src,
java.nio.charset.CharsetEncoder charsetEncoder)
Encodes a possible infinite stream of strings into a Observable of byte arrays. |
|
static rx.Observable<byte[]> |
encode(rx.Observable<java.lang.String> src,
java.lang.String charsetName)
Encodes a possible infinite stream of strings into a Observable of byte arrays. |
|
static rx.Observable<byte[]> |
from(java.io.InputStream i)
Reads from the bytes from a source InputStream and outputs Observable of
byte[]s |
|
static rx.Observable<byte[]> |
from(java.io.InputStream i,
int size)
Reads from the bytes from a source InputStream and outputs Observable of
byte[]s |
|
static rx.Observable<java.lang.String> |
from(java.io.Reader i)
Reads from the characters from a source Reader and outputs Observable of
Strings |
|
static rx.Observable<java.lang.String> |
from(java.io.Reader i,
int size)
Reads from the characters from a source Reader and outputs Observable of
Strings |
|
static
|
join(rx.Observable<T> source,
java.lang.CharSequence separator)
Concatenates the sequence of values by adding a separator between them and emitting the result once the source completes. |
|
static rx.Observable<java.lang.String> |
split(rx.Observable<java.lang.String> src,
java.lang.String regex)
Rechunks the strings based on a regex pattern and works on infinite stream. |
|
static rx.Observable<java.lang.String> |
stringConcat(rx.Observable<java.lang.String> src)
Gather up all of the strings in to one string to be able to use it as one message. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringObservable()
| Method Detail |
|---|
public static rx.Observable<byte[]> from(java.io.InputStream i)
InputStream and outputs Observable of
byte[]s
i - Source InputStream
public static rx.Observable<byte[]> from(java.io.InputStream i,
int size)
InputStream and outputs Observable of
byte[]s
i - Source InputStreamsize - internal buffer size
public static rx.Observable<java.lang.String> from(java.io.Reader i)
Reader and outputs Observable of
Strings
i - Source Reader
public static rx.Observable<java.lang.String> from(java.io.Reader i,
int size)
Reader and outputs Observable of
Strings
i - Source Readersize - internal buffer size
public static rx.Observable<java.lang.String> decode(rx.Observable<byte[]> src,
java.lang.String charsetName)
src - charsetName -
public static rx.Observable<java.lang.String> decode(rx.Observable<byte[]> src,
java.nio.charset.Charset charset)
src - charset -
public static rx.Observable<java.lang.String> decode(rx.Observable<byte[]> src,
java.nio.charset.CharsetDecoder charsetDecoder)
src - charsetDecoder -
public static rx.Observable<byte[]> encode(rx.Observable<java.lang.String> src,
java.lang.String charsetName)
src - charsetName -
public static rx.Observable<byte[]> encode(rx.Observable<java.lang.String> src,
java.nio.charset.Charset charset)
src - charset -
public static rx.Observable<byte[]> encode(rx.Observable<java.lang.String> src,
java.nio.charset.CharsetEncoder charsetEncoder)
src - charsetEncoder -
public static rx.Observable<java.lang.String> stringConcat(rx.Observable<java.lang.String> src)
src -
public static rx.Observable<java.lang.String> split(rx.Observable<java.lang.String> src,
java.lang.String regex)
split(["boo:an", "d:foo"], ":") --> ["boo", "and", "foo"] split(["boo:an", "d:foo"], "o") --> ["b", "", ":and:f", "", ""]See
Pattern
src - regex -
public static <T> rx.Observable<java.lang.String> join(rx.Observable<T> source,
java.lang.CharSequence separator)
The conversion from the value type to String is performed via
String.valueOf(java.lang.Object) calls.
For example:
Observable<Object> source = Observable.from("a", 1, "c");
Observable<String> result = join(source, ", ");
will yield a single element equal to "a, 1, c".
source - the source sequence of CharSequence valuesseparator - the separator to a
public static rx.Observable<StringObservable.Line> byLine(rx.Observable<java.lang.String> source)
Observable of Strings by lines and numbers them (zero based index)
source -
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||