()
| 34 | } |
| 35 | |
| 36 | private static LoadConfig LoadConfig() { |
| 37 | try { |
| 38 | byte[] bytes = Files.readAllBytes(Paths.get("linkd.json")); |
| 39 | return new JsonReader().buf(bytes).parse(LoadConfig.class); |
| 40 | // return new ObjectMapper().readValue(bytes, LoadConfig.class); |
| 41 | } catch (Exception e) { |
| 42 | // e.printStackTrace(); |
| 43 | } |
| 44 | return new LoadConfig(); |
| 45 | } |
| 46 | |
| 47 | public LinkdApp LinkdApp; |
| 48 |