/** Set the current catalog. */ public void setCatalog (Catalog catalog) { this.catalog = catalog; debug = catalog.getCatalogManager().debug; }
/** Set the current catalog. */ public void setCatalog (Catalog catalog) { this.catalog = catalog; debug = catalog.getCatalogManager().debug; }
/** Set the current catalog. */ public void setCatalog (Catalog catalog) { this.catalog = catalog; debug = catalog.getCatalogManager().debug; }
/** Set the current catalog. */ public void setCatalog (Catalog catalog) { this.catalog = catalog; debug = catalog.getCatalogManager().debug; }
/** * Parse an XML Catalog file. * * @param catalog The catalog to which this catalog file belongs * @param fileUrl The URL or filename of the catalog file to process * * @throws MalformedURLException Improper fileUrl * @throws IOException Error reading catalog file */ public void readCatalog(Catalog catalog, String fileUrl) throws MalformedURLException, IOException, CatalogException { URL url = null; try { url = new URL(fileUrl); } catch (MalformedURLException e) { url = new URL("file:///" + fileUrl); } debug = catalog.getCatalogManager().debug; try { URLConnection urlCon = url.openConnection(); readCatalog(catalog, urlCon.getInputStream()); } catch (FileNotFoundException e) { catalog.getCatalogManager().debug.message(1, "Failed to load catalog, file not found", url.toString()); } }
/** * Parse an XML Catalog file. * * @param catalog The catalog to which this catalog file belongs * @param fileUrl The URL or filename of the catalog file to process * * @throws MalformedURLException Improper fileUrl * @throws IOException Error reading catalog file */ public void readCatalog(Catalog catalog, String fileUrl) throws MalformedURLException, IOException, CatalogException { URL url = null; try { url = new URL(fileUrl); } catch (MalformedURLException e) { url = new URL("file:///" + fileUrl); } debug = catalog.getCatalogManager().debug; try { URLConnection urlCon = url.openConnection(); readCatalog(catalog, urlCon.getInputStream()); } catch (FileNotFoundException e) { catalog.getCatalogManager().debug.message(1, "Failed to load catalog, file not found", url.toString()); } }
/** * Parse an XML Catalog file. * * @param catalog The catalog to which this catalog file belongs * @param fileUrl The URL or filename of the catalog file to process * * @throws MalformedURLException Improper fileUrl * @throws IOException Error reading catalog file */ public void readCatalog(Catalog catalog, String fileUrl) throws MalformedURLException, IOException, CatalogException { URL url = null; try { url = new URL(fileUrl); } catch (MalformedURLException e) { url = new URL("file:///" + fileUrl); } debug = catalog.getCatalogManager().debug; try { URLConnection urlCon = url.openConnection(); readCatalog(catalog, urlCon.getInputStream()); } catch (FileNotFoundException e) { catalog.getCatalogManager().debug.message(1, "Failed to load catalog, file not found", url.toString()); } }
/** * Parse an XML Catalog file. * * @param catalog The catalog to which this catalog file belongs * @param fileUrl The URL or filename of the catalog file to process * * @throws MalformedURLException Improper fileUrl * @throws IOException Error reading catalog file */ public void readCatalog(Catalog catalog, String fileUrl) throws MalformedURLException, IOException, CatalogException { URL url = null; try { url = new URL(fileUrl); } catch (MalformedURLException e) { url = new URL("file:///" + fileUrl); } debug = catalog.getCatalogManager().debug; try { URLConnection urlCon = url.openConnection(); readCatalog(catalog, urlCon.getInputStream()); } catch (FileNotFoundException e) { catalog.getCatalogManager().debug.message(1, "Failed to load catalog, file not found", url.toString()); } }
/** * Start parsing a text catalog file. The file is * actually read and parsed * as needed by <code>nextEntry</code>.</p> * * @param fileUrl The URL or filename of the catalog file to process * * @throws MalformedURLException Improper fileUrl * @throws IOException Error reading catalog file */ public void readCatalog(Catalog catalog, String fileUrl) throws MalformedURLException, IOException { URL catURL = null; try { catURL = new URL(fileUrl); } catch (MalformedURLException e) { catURL = new URL("file:///" + fileUrl); } URLConnection urlCon = catURL.openConnection(); try { readCatalog(catalog, urlCon.getInputStream()); } catch (FileNotFoundException e) { catalog.getCatalogManager().debug.message(1, "Failed to load catalog, file not found", catURL.toString()); } }
/** * Start parsing a text catalog file. The file is * actually read and parsed * as needed by <code>nextEntry</code>.</p> * * @param fileUrl The URL or filename of the catalog file to process * * @throws MalformedURLException Improper fileUrl * @throws IOException Error reading catalog file */ public void readCatalog(Catalog catalog, String fileUrl) throws MalformedURLException, IOException { URL catURL = null; try { catURL = new URL(fileUrl); } catch (MalformedURLException e) { catURL = new URL("file:///" + fileUrl); } URLConnection urlCon = catURL.openConnection(); try { readCatalog(catalog, urlCon.getInputStream()); } catch (FileNotFoundException e) { catalog.getCatalogManager().debug.message(1, "Failed to load catalog, file not found", catURL.toString()); } }
/** * Start parsing a text catalog file. The file is * actually read and parsed * as needed by <code>nextEntry</code>.</p> * * @param fileUrl The URL or filename of the catalog file to process * * @throws MalformedURLException Improper fileUrl * @throws IOException Error reading catalog file */ public void readCatalog(Catalog catalog, String fileUrl) throws MalformedURLException, IOException { URL catURL = null; try { catURL = new URL(fileUrl); } catch (MalformedURLException e) { catURL = new URL("file:///" + fileUrl); } URLConnection urlCon = catURL.openConnection(); try { readCatalog(catalog, urlCon.getInputStream()); } catch (FileNotFoundException e) { catalog.getCatalogManager().debug.message(1, "Failed to load catalog, file not found", catURL.toString()); } }
/** * Start parsing a text catalog file. The file is * actually read and parsed * as needed by <code>nextEntry</code>.</p> * * @param fileUrl The URL or filename of the catalog file to process * * @throws MalformedURLException Improper fileUrl * @throws IOException Error reading catalog file */ public void readCatalog(Catalog catalog, String fileUrl) throws MalformedURLException, IOException { URL catURL = null; try { catURL = new URL(fileUrl); } catch (MalformedURLException e) { catURL = new URL("file:///" + fileUrl); } URLConnection urlCon = catURL.openConnection(); try { readCatalog(catalog, urlCon.getInputStream()); } catch (FileNotFoundException e) { catalog.getCatalogManager().debug.message(1, "Failed to load catalog, file not found", catURL.toString()); } }
catalog.getCatalogManager().debug.message(4, "Base", atts.getValue("HRef")); } else if (localName.equals("Delegate")) { entryType = catalog.DELEGATE_PUBLIC; catalog.getCatalogManager().debug.message(4, "Delegate", PublicId.normalize(atts.getValue("PublicId")), atts.getValue("HRef")); catalog.getCatalogManager().debug.message(4, "Extend", atts.getValue("HRef")); } else if (localName.equals("Map")) { entryType = catalog.PUBLIC; catalog.getCatalogManager().debug.message(4, "Map", PublicId.normalize(atts.getValue("PublicId")), atts.getValue("HRef")); catalog.getCatalogManager().debug.message(4, "Remap", atts.getValue("SystemId"), atts.getValue("HRef")); catalog.getCatalogManager().debug.message(1, "Invalid catalog entry type", localName); } catch (CatalogException cex) { if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) { catalog.getCatalogManager().debug.message(1, "Invalid catalog entry type", localName); } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) { catalog.getCatalogManager().debug.message(1, "Invalid catalog entry", localName);
debug = catalog.getCatalogManager().debug; EntityResolver bResolver = catalog.getCatalogManager().getBootstrapResolver();
debug = catalog.getCatalogManager().debug; EntityResolver bResolver = catalog.getCatalogManager().getBootstrapResolver();
debug = catalog.getCatalogManager().debug; EntityResolver bResolver = catalog.getCatalogManager().getBootstrapResolver();
catalog.getCatalogManager().debug.message(1, "Invalid catalog entry", token); unknownEntry = null; } else if (cex.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex.getMessage()); catalog.getCatalogManager().debug.message(1, cex2.getMessage());
catalog.getCatalogManager().debug.message(1, "Invalid catalog entry", token); unknownEntry = null; } else if (cex.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex.getMessage()); catalog.getCatalogManager().debug.message(1, cex2.getMessage());
catalog.getCatalogManager().debug.message(1, "Invalid catalog entry", token); unknownEntry = null; } else if (cex.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex.getMessage()); catalog.getCatalogManager().debug.message(1, cex2.getMessage());
catalog.getCatalogManager().debug.message(1, "Invalid catalog entry", token); unknownEntry = null; } else if (cex.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex.getMessage()); catalog.getCatalogManager().debug.message(1, cex2.getMessage());