public Toml read ( Reader reader ) { BufferedReader bufferedReader = null ; try { bufferedReader = new BufferedReader ( reader ) ; StringBuilder w = new StringBuilder ( ) ; String line = bufferedReader . readLine ( ) ; while ( line != null ) { w . append ( line ) . append ( ' ' ) ; line = bufferedReader . readLine ( ) ; } read ( w . toString ( ) ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } finally { try { bufferedReader . close ( ) ; } catch ( IOException e ) { } } return this ; }
Populates the current Toml instance with values from reader .