OskarConfiguration { public static OskarConfiguration load(InputStream configurationInputStream) throws IOException { return load(configurationInputStream, "yaml"); } OskarConfiguration(); static OskarConfiguration load(InputStream configurationInputStream); static OskarConfiguration load(InputStream configurationInputStream, String format); void serialize(OutputStream configurationOutputStream); @Override String toString(); int getNumThreads(); OskarConfiguration setNumThreads(int numThreads); AnalysisConfiguration getAnalysis(); OskarConfiguration setAnalysis(AnalysisConfiguration analysis); String getLogLevel(); OskarConfiguration setLogLevel(String logLevel); String getLogFile(); OskarConfiguration setLogFile(String logFile); String getToolFolder(); OskarConfiguration setToolFolder(String toolFolder); CellBaseConfiguration getCellbase(); OskarConfiguration setCellbase(CellBaseConfiguration cellbase);  }
@Test public void testLoad() throws Exception { OskarConfiguration storageConfiguration = OskarConfiguration.load(getClass().getResource("/configuration.yml") .openStream()); System.out.println("oskarConfiguration = " + storageConfiguration); }