()
| 141 | } |
| 142 | |
| 143 | public static File getRunningJar() { |
| 144 | try { |
| 145 | return new File(Utils.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()); |
| 146 | } catch (Exception e) { |
| 147 | return null; |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | public static String convertStreamToString(InputStream is) throws IOException { |
| 152 | return new BufferedReader(new InputStreamReader(is)).readLine(); |
no test coverage detected