public class MixedStream extends AbstractStream
| Modifier and Type | Field and Description |
|---|---|
(package private) Random |
rnd |
(package private) List<Stream> |
streams |
(package private) Double |
totalWeight |
(package private) List<Double> |
weights |
closed, count, id, in, limit, prefix, seqId, sequenceKey, urlSOURCE_KEY| Constructor and Description |
|---|
MixedStream(SourceURL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Double weight,
Stream stream) |
protected int |
choose() |
Data |
readNext() |
close, getId, getInputStream, getLimit, getPrefix, getSequenceKey, getUrl, init, read, setId, setLimit, setPrefix, setSequenceKey, setUrlpublic MixedStream(SourceURL url)
url - protected int choose()
public Data readNext() throws Exception
readNext in class AbstractStreamExceptionSource.read()Copyright © 2018. All rights reserved.