public static OrgFileSettings fromPreface(String preface) { OrgFileSettings settings = new OrgFileSettings(); BufferedReader reader = new BufferedReader(new StringReader(preface)); try { String line; while ((line = reader.readLine()) != null) { settings.parseLine(line); } } catch (IOException e) { e.printStackTrace(); } finally { try { reader.close(); } catch (IOException e) { e.printStackTrace(); } } return settings; }
if (orgFile.getSettings().parseLine(line)) {