(String name)
| 105 | } |
| 106 | |
| 107 | private static byte[] loadFromResources(String name) { |
| 108 | try { |
| 109 | return Files.readAllBytes(Paths.get(Main.class.getResource(name).toURI())); |
| 110 | } catch (IOException | URISyntaxException e) { |
| 111 | throw new RuntimeException(e); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | public static void main(final String[] args) { |
| 116 | launch(new Main()); |