- try {
- File file = new File(url.toURI());
- if (file.getName().equals("index.html")) {
- file = file.getParentFile();
- }
-
- file = new File(file, file.getName());
-
- return super.supports(file.toURI().toURL());
- } catch (URISyntaxException e) {
- } catch (MalformedURLException e) {
- }
-
- return false;