@@ -40,6 +40,8 @@ public class StringObservable {
40
40
/**
41
41
* Reads from the bytes from a source {@link InputStream} and outputs {@link Observable} of
42
42
* {@code byte[]}s
43
+ * <p>
44
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.from.png">
43
45
*
44
46
* @param i
45
47
* Source {@link InputStream}
@@ -52,6 +54,8 @@ public static Observable<byte[]> from(final InputStream i) {
52
54
/**
53
55
* Reads from the bytes from a source {@link InputStream} and outputs {@link Observable} of
54
56
* {@code byte[]}s
57
+ * <p>
58
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.from.png">
55
59
*
56
60
* @param i
57
61
* Source {@link InputStream}
@@ -86,6 +90,8 @@ public void call(Subscriber<? super byte[]> o) {
86
90
/**
87
91
* Reads from the characters from a source {@link Reader} and outputs {@link Observable} of
88
92
* {@link String}s
93
+ * <p>
94
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.from.png">
89
95
*
90
96
* @param i
91
97
* Source {@link Reader}
@@ -98,6 +104,8 @@ public static Observable<String> from(final Reader i) {
98
104
/**
99
105
* Reads from the characters from a source {@link Reader} and outputs {@link Observable} of
100
106
* {@link String}s
107
+ * <p>
108
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.from.png">
101
109
*
102
110
* @param i
103
111
* Source {@link Reader}
@@ -132,6 +140,8 @@ public void call(Subscriber<? super String> o) {
132
140
/**
133
141
* Decodes a stream the multibyte chunks into a stream of strings that works on infinite streams
134
142
* and where handles when a multibyte character spans two chunks.
143
+ * <p>
144
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.decode.png">
135
145
*
136
146
* @param src
137
147
* @param charsetName
@@ -144,6 +154,8 @@ public static Observable<String> decode(Observable<byte[]> src, String charsetNa
144
154
/**
145
155
* Decodes a stream the multibyte chunks into a stream of strings that works on infinite streams
146
156
* and where handles when a multibyte character spans two chunks.
157
+ * <p>
158
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.decode.png">
147
159
*
148
160
* @param src
149
161
* @param charset
@@ -157,6 +169,8 @@ public static Observable<String> decode(Observable<byte[]> src, Charset charset)
157
169
* Decodes a stream the multibyte chunks into a stream of strings that works on infinite streams
158
170
* and where it handles when a multibyte character spans two chunks.
159
171
* This method allows for more control over how malformed and unmappable characters are handled.
172
+ * <p>
173
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.decode.png">
160
174
*
161
175
* @param src
162
176
* @param charsetDecoder
@@ -246,6 +260,8 @@ public boolean process(byte[] next, ByteBuffer last, boolean endOfInput) {
246
260
247
261
/**
248
262
* Encodes a possible infinite stream of strings into a Observable of byte arrays.
263
+ * <p>
264
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.encode.png">
249
265
*
250
266
* @param src
251
267
* @param charsetName
@@ -257,6 +273,8 @@ public static Observable<byte[]> encode(Observable<String> src, String charsetNa
257
273
258
274
/**
259
275
* Encodes a possible infinite stream of strings into a Observable of byte arrays.
276
+ * <p>
277
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.encode.png">
260
278
*
261
279
* @param src
262
280
* @param charset
@@ -269,6 +287,8 @@ public static Observable<byte[]> encode(Observable<String> src, Charset charset)
269
287
/**
270
288
* Encodes a possible infinite stream of strings into a Observable of byte arrays.
271
289
* This method allows for more control over how malformed and unmappable characters are handled.
290
+ * <p>
291
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.encode.png">
272
292
*
273
293
* @param src
274
294
* @param charsetEncoder
@@ -293,6 +313,8 @@ public byte[] call(String str) {
293
313
/**
294
314
* Gather up all of the strings in to one string to be able to use it as one message. Don't use
295
315
* this on infinite streams.
316
+ * <p>
317
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.stringConcat.png">
296
318
*
297
319
* @param src
298
320
* @return the Observable returing all strings concatenated as a single string
@@ -315,6 +337,8 @@ public String call(String a, String b) {
315
337
* </pre>
316
338
*
317
339
* See {@link Pattern}
340
+ * <p>
341
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.split.png">
318
342
*
319
343
* @param src
320
344
* @param regex
@@ -384,6 +408,8 @@ private void output(String part) {
384
408
* Concatenates the sequence of values by adding a separator
385
409
* between them and emitting the result once the source completes.
386
410
* <p>
411
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.join.png">
412
+ * <p>
387
413
* The conversion from the value type to String is performed via
388
414
* {@link java.lang.String#valueOf(java.lang.Object)} calls.
389
415
* <p>
@@ -487,6 +513,8 @@ public String toString() {
487
513
488
514
/**
489
515
* Splits the {@link Observable} of Strings by lines and numbers them (zero based index)
516
+ * <p>
517
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/St.byLine.png">
490
518
*
491
519
* @param source
492
520
* @return the Observable conaining the split lines of the source
0 commit comments