public void addEntry ( String placeholder , String ... params ) { ConfigEntry entry = entries . get ( placeholder ) ; String line = entry . template ; for ( int i = 0 ; i < params . length ; i ++ ) { line = line . replace ( "{" + i + "}" , StringUtils . defaultString ( params [ i ] ) ) ; } entry . buffer . add ( line ) ; }
Adds an entry to the config file .