/* 185 */ if (LogSupport.isLoggable())
/* 186 */ LogSupport.log("MimetypesFileTypeMap: URL " + url);
/* */ try {
/* 188 */ clis = SecuritySupport.openStream(url);
/* 189 */ if (clis != null) {
/* 190 */ v.addElement(new MimeTypeFile(clis));
/* 191 */ anyLoaded = true;
/* 192 */ if (LogSupport.isLoggable()) {
/* 193 */ LogSupport.log("MimetypesFileTypeMap: successfully loaded mime types from URL: " + url);
/* */ }
/* */
/* */ }
/* 197 */ else if (LogSupport.isLoggable()) {
/* 198 */ LogSupport.log("MimetypesFileTypeMap: not loading mime types from URL: " + url);
/* */ }
/* */ }
/* */ catch (IOException cex)
/* */ {
/* 203 */ if (LogSupport.isLoggable())
/* 204 */ LogSupport.log("MimetypesFileTypeMap: can't load " + url, ioex);
/* */ }
/* */ catch (SecurityException cex) {
/* 207 */ if (LogSupport.isLoggable())
/* 208 */ LogSupport.log("MimetypesFileTypeMap: can't load " + url, sex);
/* */ }
/* */ finally {
/* */ try {
/* 212 */ if (clis != null)
/* 213 */ clis.close();
/* */ } catch (IOException cex) {
/* */ }
/* */ }
/* */ }
/* */ }
/* */ } catch (Exception ex) {
/* 219 */ if (LogSupport.isLoggable()) {
/* 220 */ LogSupport.log("MimetypesFileTypeMap: can't load " + name, ex);
/* */ }
/* */ }
/* */
/* 224 */ if (!anyLoaded) {
/* 225 */ LogSupport.log("MimetypesFileTypeMap: !anyLoaded");
/* 226 */ MimeTypeFile mf = loadResource("/" + name);
/* 227 */ if (mf != null)
/* 228 */ v.addElement(mf);
/* */ }
/* */ }