(final String name)
| 1314 | } |
| 1315 | |
| 1316 | private static URL[] getSystemResources(final String name) { |
| 1317 | return AccessController.doPrivileged(new PrivilegedAction<URL[]>() { |
| 1318 | @Override |
| 1319 | public URL[] run() { |
| 1320 | URL[] ret = null; |
| 1321 | try { |
| 1322 | List<URL> v = Collections.list( |
| 1323 | ClassLoader.getSystemResources(name)); |
| 1324 | if (!v.isEmpty()) { |
| 1325 | ret = new URL[v.size()]; |
| 1326 | v.toArray(ret); |
| 1327 | } |
| 1328 | } catch (IOException ioex) { |
| 1329 | } catch (SecurityException ex) { } |
| 1330 | return ret; |
| 1331 | } |
| 1332 | }); |
| 1333 | } |
| 1334 | |
| 1335 | private static InputStream openStream(final URL url) throws IOException { |
| 1336 | try { |
no outgoing calls
no test coverage detected