if (dataSource instanceof StreamDataSource) {
((StreamDataSource) dataSource).setInputStream(is);
} else if (dataSource instanceof StreamCepstrumSource) {
boolean isBigEndian = Utilities
.isCepstraFileBigEndian(filename);
StreamCepstrumSource cepstrumSource =
(StreamCepstrumSource) dataSource;
cepstrumSource.setInputStream(is, isBigEndian);
// TODO: christophe: should use an interface there !!
} else if (dataSource instanceof StreamHTKCepstrum) {
StreamHTKCepstrum cepstrumSource =
(StreamHTKCepstrum) dataSource;
cepstrumSource.setInputStream(is);
}
}
}