@Override public List<String> getAnchorsInFile(File file) throws IOException { ConfigurationParser parser = new ConfigurationParser(null); try { parser.parse(file); return getUnitNames(parser); } catch (IOException e) { // not all configuration files are XML; return null if unparsable return null; } }
@Override public List<String> getAnchorsInFile(File file) throws IOException { ConfigurationParser parser = new ConfigurationParser(null); try { parser.parse(file); return getUnitNames(parser); } catch (IOException e) { // not all configuration files are XML; return null if unparsable return null; } }
@Override public List<String> getAnchorsInFile(File file) throws IOException { ConfigurationParser parser = new ConfigurationParser(null); try { parser.parse(file); return getUnitNames(parser); } catch (IOException e) { // not all configuration files are XML; return null if unparsable return null; } }
@Override public List<String> getAnchorsInFile(File file) throws IOException { ConfigurationParser parser = new ConfigurationParser(null); try { parser.parse(file); return getUnitNames(parser); } catch (IOException e) { // not all configuration files are XML; return null if unparsable return null; } }
@Override public List getAnchorsInFile(File file) throws IOException { ConfigurationParser parser = new ConfigurationParser(null); try { parser.parse(file); return getUnitNames(parser); } catch (IOException e) { // not all configuration files are XML; return null if unparsable return null; } }
@Override public List getAnchorsInResource(String resource) throws Exception { ConfigurationParser parser = new ConfigurationParser(null); try { List results = new ArrayList(); ClassLoader loader = AccessController.doPrivileged( J2DoPrivHelper.getContextClassLoaderAction()); List<URL> urls = getResourceURLs(resource, loader); if (urls != null) { for (URL url : urls) { parser.parse(url); results.addAll(getUnitNames(parser)); } } return results; } catch (IOException e) { // not all configuration files are XML; return null if unparsable return null; } }
@Override public List getAnchorsInResource(String resource) throws Exception { ConfigurationParser parser = new ConfigurationParser(null); try { List results = new ArrayList(); ClassLoader loader = AccessController.doPrivileged( J2DoPrivHelper.getContextClassLoaderAction()); List<URL> urls = getResourceURLs(resource, loader); if (urls != null) { for (URL url : urls) { parser.parse(url); results.addAll(getUnitNames(parser)); } } return results; } catch (IOException e) { // not all configuration files are XML; return null if unparsable return null; } }
@Override public List getAnchorsInResource(String resource) throws Exception { ConfigurationParser parser = new ConfigurationParser(null); try { List results = new ArrayList(); ClassLoader loader = AccessController.doPrivileged( J2DoPrivHelper.getContextClassLoaderAction()); List<URL> urls = getResourceURLs(resource, loader); if (urls != null) { for (URL url : urls) { parser.parse(url); results.addAll(getUnitNames(parser)); } } return results; } catch (IOException e) { // not all configuration files are XML; return null if unparsable return null; } }
@Override public List getAnchorsInResource(String resource) throws Exception { ConfigurationParser parser = new ConfigurationParser(null); try { List results = new ArrayList(); ClassLoader loader = AccessController.doPrivileged( J2DoPrivHelper.getContextClassLoaderAction()); List<URL> urls = getResourceURLs(resource, loader); if (urls != null) { for (URL url : urls) { parser.parse(url); results.addAll(getUnitNames(parser)); } } return results; } catch (IOException e) { // not all configuration files are XML; return null if unparsable return null; } }
@Override public List getAnchorsInResource(String resource) throws Exception { ConfigurationParser parser = new ConfigurationParser(null); try { ClassLoader loader = (ClassLoader) AccessController.doPrivileged( J2DoPrivHelper.getContextClassLoaderAction()); List<URL> urls = getResourceURLs(resource, loader); if (urls != null) { for (URL url : urls) { parser.parse(url); } } return getUnitNames(parser); } catch (IOException e) { // not all configuration files are XML; return null if unparsable return null; } }