dsc = new AsciiFileDataSourceCollection(f, optionPanel.getChartsetName(), f.getName().endsWith(".csv"));
} else {
dsc = new AsciiFileDataSourceCollection(f, f.getName().endsWith(".csv"));
}
if ((optionPanel != null) && optionPanel.isDynamic()) {
DataSourceCollectionAnimator dsca = new DataSourceCollectionAnimator(dsc);
dsca.bufferize(new DelayedBuffer(optionPanel.getBufferSize()));
dsca.setPeriod(optionPanel.getDynamicRefreshValue());
DataSourcePool.global.addDataSourceCollection(dsca);
} else {
dsc.bufferize(new ResizeableBuffer(resources.getIntValue("maxBufferSize")));
DataSourcePool.global.addDataSourceCollection(dsc);
}