public Spreadsheet loadFrom( String _originalFileName, InputStream _stream ) throws IOException,
SpreadsheetException
{
for (Factory factory : FACTORIES) {
if (factory.canHandle( _originalFileName )) {
SpreadsheetLoader loader = factory.newInstance( this.config );
return loader.loadFrom( _originalFileName, _stream );
}
}
throw new SpreadsheetException.UnsupportedFormat( "No loader found for file " + _originalFileName );
}