This commit is contained in:
Rossen Stoyanchev
2016-01-07 15:26:11 -05:00
parent c3a8bf4d17
commit a712f43654
2 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ import java.util.concurrent.BlockingQueue;
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscription;
import reactor.rx.Streams;
import reactor.rx.Stream;
/**
* {@code InputStream} implementation based on a byte array {@link Publisher}.
@@ -60,7 +60,7 @@ public class ByteBufferPublisherInputStream extends InputStream {
public ByteBufferPublisherInputStream(Publisher<ByteBuffer> publisher, int requestSize) {
Assert.notNull(publisher, "'publisher' must not be null");
this.queue = Streams.from(publisher).toBlockingQueue(requestSize);
this.queue = Stream.from(publisher).toBlockingQueue(requestSize);
}