this.sorter = sorter;
}
public void sort(InputStream inputStream, OutputStream outputStream) {
long begin = System.currentTimeMillis();
CountingInputStream countingInputStream = new CountingInputStream(inputStream);
doSort(countingInputStream, outputStream);
LogUtils.infoTimeTaken(LOG, begin, countingInputStream.getCount(), "Sorted stream of %d bytes", countingInputStream.getCount());
}