Skip to content

Commit

Permalink
Move ObservableSplit into internals
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Dec 12, 2016
1 parent 67de5c6 commit 47e0c48
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package rx.observables;
package rx.internal.operators;

import java.util.Queue;
import java.util.concurrent.atomic.*;
Expand All @@ -32,15 +32,15 @@
* Split a sequence of strings based on a Rexexp pattern spanning subsequent
* items if necessary.
*/
final class ObservableSplit implements OnSubscribe<String> {
public final class ObservableSplit implements OnSubscribe<String> {

final Observable<String> source;

final Pattern pattern;

final int bufferSize;

ObservableSplit(Observable<String> source, Pattern pattern, int bufferSize) {
public ObservableSplit(Observable<String> source, Pattern pattern, int bufferSize) {
this.source = source;
this.pattern = pattern;
this.bufferSize = bufferSize;
Expand Down
33 changes: 9 additions & 24 deletions src/main/java/rx/observables/StringObservable.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,19 @@
*/
package rx.observables;

import rx.Observable;
import rx.Observable.Operator;
import rx.Producer;
import rx.Subscriber;
import rx.functions.Action1;
import rx.functions.Func0;
import rx.functions.Func1;
import rx.functions.Func2;
import rx.internal.operators.OnSubscribeInputStream;
import rx.internal.operators.OnSubscribeReader;
import rx.internal.util.RxRingBuffer;

import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.CharacterCodingException;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CharsetEncoder;
import java.nio.charset.CoderResult;
import java.nio.charset.CodingErrorAction;
import java.io.*;
import java.nio.*;
import java.nio.charset.*;
import java.util.Arrays;
import java.util.concurrent.Callable;
import java.util.regex.Pattern;

import rx.*;
import rx.Observable.Operator;
import rx.functions.*;
import rx.internal.operators.*;
import rx.internal.util.RxRingBuffer;

public class StringObservable {
/**
* Reads bytes from a source {@link InputStream} and outputs {@link Observable} of
Expand Down

0 comments on commit 47e0c48

Please sign in to comment.