private String loadSettings(InputStream in){
  StringBuilder settings=new StringBuilder();
  BufferedReader reader=null;
  try {
    reader=new BufferedReader(new InputStreamReader(in));
    String line=reader.readLine();
    while (line != null) {
      if (settings.length() != 0)       settings.append(SystemHelper.LINE_SEPARATOR);
      settings.append(line);
      line=reader.readLine();
    }
  }
 catch (  Throwable e) {
    throw new IgniteException("Failed to read input stream for Cassandra persistence settings",e);
  }
 finally {
    U.closeQuiet(reader);
    U.closeQuiet(in);
  }
  return settings.toString();
}

private String loadSettings ( InputStream in ) { StringBuilder settings = new StringBuilder ( ) ; BufferedReader reader = null ; try { reader = new BufferedReader ( new InputStreamReader ( in ) ) ; String line = reader . readLine ( ) ; while ( line != null ) { if ( settings . length ( ) != 0 ) settings . append ( SystemHelper . LINE_SEPARATOR ) ; settings . append ( line ) ; line = reader . readLine ( ) ; } } catch ( Throwable e ) { throw new IgniteException ( "Failed to read input stream for Cassandra persistence settings" , e ) ; } finally { U . closeQuiet ( reader ) ; U . closeQuiet ( in ) ; } return settings . toString ( ) ; }
loads ignite cache persistence settings from resource .
