Methods Summary |
---|
protected byte[] | doProduction()
byte[] data = null;
if (source != null) {
data = source.produce();
}
return data;
|
protected boolean | postProduction(byte[] data)
monitor.addSample(data.length);
return true;
|
protected boolean | preProduction()
if (monitor.getStart() == null)
monitor.start();
return true;
|
public byte[] | produce()
boolean success;
byte[] data = null;
success = preProduction();
if (success)
data = doProduction();
if (success && data != null)
success = postProduction(data);
return data;
|
public void | setDest(ContentConsumer c)
dest = c;
|
public void | setDest(java.io.OutputStream s)
dest = new ContentConsumer(s);
|
public void | setSource(dcj.util.Bandwidth.ContentProducer p)
source = p;
|
public void | setSource(java.io.InputStream s)
source = new ContentProducer(s);
|