(final String path)
| 412 | } |
| 413 | |
| 414 | private static BufferedWriter getWriter(final String path) |
| 415 | { |
| 416 | try |
| 417 | { |
| 418 | return new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), "UTF-8")); |
| 419 | } catch (IOException e) |
| 420 | { |
| 421 | Logging.errorPrint("Could not get a writer to write to " + path |
| 422 | + " \nThis means that your custom files won't be written. Please check the path.", e); |
| 423 | return null; |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | private static String customEquipmentFilePath() |
| 428 | { |
no test coverage detected