public static HashMap < String , MtasConfiguration > readMtasTokenizerConfigurations ( ResourceLoader resourceLoader , String configFile ) throws IOException { HashMap < String , HashMap < String , String > > configs = readConfigurations ( resourceLoader , configFile , MtasTokenizerFactory . class . getName ( ) ) ; if ( configs == null ) { throw new IOException ( "no configurations" ) ; } else { HashMap < String , MtasConfiguration > result = new HashMap < String , MtasConfiguration > ( ) ; for ( Entry < String , HashMap < String , String > > entry : configs . entrySet ( ) ) { HashMap < String , String > config = entry . getValue ( ) ; if ( config . containsKey ( TOKENIZER_CONFIGURATION_FILE ) ) { result . put ( entry . getKey ( ) , readConfiguration ( resourceLoader . openResource ( config . get ( TOKENIZER_CONFIGURATION_FILE ) ) ) ) ; } else { throw new IOException ( "configuration " + entry . getKey ( ) + " has no " + TOKENIZER_CONFIGURATION_FILE ) ; } } return result ; } }
Read mtas tokenizer configurations .