Check to see if a path is displayable using HTMLEditorKit. This will be the case if the path has a hash-tag reference or does not end in ".pdf", ".doc", or ".txt". @param path @return true if displayable using HTMLEditorKit
(String path)
| 2451 | * @return true if displayable using HTMLEditorKit |
| 2452 | */ |
| 2453 | public static boolean isDisplayable(String path) { |
| 2454 | if (path.indexOf("#") < 0) { |
| 2455 | for (String ext : extractExtensions) { |
| 2456 | if (path.endsWith(ext)) |
| 2457 | return false; |
| 2458 | } |
| 2459 | } |
| 2460 | return true; |
| 2461 | } |
| 2462 | |
| 2463 | /** |
| 2464 | * Gets the node path and page number associated with an html URL. May return |
no outgoing calls