public Collection < XLog > parse ( File file ) throws Exception { Collection < XLog > result = null ; for ( XParser parser : XParserRegistry . instance ( ) . getAvailable ( ) ) { if ( parser . canParse ( file ) ) { try { result = parser . parse ( file ) ; return result ; } catch ( Exception e ) { // ignore and move on } } } throw new Exception ( "No suitable parser could be found!" ) ; }
Attempts to parse a collection of XES models from the given file using all available parsers .