/** * Use this overload only if you already have the {@link InputStream} for some reason, otherwise use * {@link #addTldLocationFromTld(TldLocation)}. * * @param reusedIn * The stream that we already had (so we don't have to open a new one from the {@code tldLocation}). */ private void addTldLocationFromTld(InputStream reusedIn, TldLocation tldLocation) throws SAXException, IOException { String taglibUri; try { taglibUri = getTaglibUriFromTld(reusedIn, tldLocation.getXmlSystemId()); } catch (SAXException e) { LOG.error("Error while parsing TLD; skipping: " + tldLocation, e); synchronized (failedTldLocations) { failedTldLocations.add(tldLocation.toString()); } taglibUri = null; } if (taglibUri != null) { addTldLocation(tldLocation, taglibUri); } }
/** * Use this overload only if you already have the {@link InputStream} for some reason, otherwise use * {@link #addTldLocationFromTld(TldLocation)}. * * @param reusedIn * The stream that we already had (so we don't have to open a new one from the {@code tldLocation}). */ private void addTldLocationFromTld(InputStream reusedIn, TldLocation tldLocation) throws SAXException, IOException { String taglibUri; try { taglibUri = getTaglibUriFromTld(reusedIn, tldLocation.getXmlSystemId()); } catch (SAXException e) { LOG.error("Error while parsing TLD; skipping: " + tldLocation, e); synchronized (failedTldLocations) { failedTldLocations.add(tldLocation.toString()); } taglibUri = null; } if (taglibUri != null) { addTldLocation(tldLocation, taglibUri); } }
/** * Use this overload only if you already have the {@link InputStream} for some reason, otherwise use * {@link #addTldLocationFromTld(TldLocation)}. * * @param reusedIn * The stream that we already had (so we don't have to open a new one from the {@code tldLocation}). */ private void addTldLocationFromTld(InputStream reusedIn, TldLocation tldLocation) throws SAXException, IOException { String taglibUri; try { taglibUri = getTaglibUriFromTld(reusedIn, tldLocation.getXmlSystemId()); } catch (SAXException e) { LOG.error("Error while parsing TLD; skipping: " + tldLocation, e); synchronized (failedTldLocations) { failedTldLocations.add(tldLocation.toString()); } taglibUri = null; } if (taglibUri != null) { addTldLocation(tldLocation, taglibUri); } }