MCPcopy Create free account
hub / github.com/M66B/FairEmail / getSystemResources

Method getSystemResources

app/src/main/java/javax/mail/Session.java:1316–1333  ·  view source on GitHub ↗
(final String name)

Source from the content-addressed store, hash-verified

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 {

Callers 2

loadAllResourcesMethod · 0.95
runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected