}
d.updateDownloadTime();
if (chunk.size() > outputBuffer.length) {
outputBuffer = new byte[chunk.size()];
}
processor.doChunck(chunk.size(), chunk.toByteArray(outputBuffer));
d.setDownloaded(d.getDownloaded() + chunk.size());
chunk.clear();
bufferWatch.add();
//System.out.print(bufferWatch);
long maxTime = getdSettings().getBufferTime() * 1000000;