static IdentityTemplateLibrary load ( InputStream in ) throws IOException { BufferedReader br = new BufferedReader ( new InputStreamReader ( in ) ) ; String line = null ; IdentityTemplateLibrary library = new IdentityTemplateLibrary ( ) ; while ( ( line = br . readLine ( ) ) != null ) { // skip comments if ( line . charAt ( 0 ) == ' ' ) continue ; library . add ( decodeEntry ( line ) ) ; } return library ; }
Load a template library from an input stream .