code: static InputStream getStream(final ClassLoader loader, final String resourceName, boolean required) {
          InputStream i = null;
          if (System.getSecurityManager() != null) {
              i = AccessController.doPrivileged(new PrivilegedAction<InputStream>() {
                      @Override
                      public InputStream run() {
                          return loader.getResourceAsStream(resourceName);
                      }
                  });
          } else {
              i = loader.getResourceAsStream(resourceName);
          }
          if (i == null && required) {
              throw new MissingResourceException("could not locate data", loader.toString(), resourceName);
          }
          checkStreamForBinaryData(i, resourceName);
          return i;
      }
docs: Should be called only from ICUBinary.getData() or from convenience overloads here.