Tells whether or not the given file name matches the name of a ZAP add-on. The file name must have as file extension #FILE_EXTENSION. @param fileName the name of the file to check @return true if the given file name is the name of an add-on, false otherwise. @since 2
(String fileName)
| 355 | * @since 2.6.0 |
| 356 | */ |
| 357 | public static boolean isAddOnFileName(String fileName) { |
| 358 | if (fileName == null) { |
| 359 | return false; |
| 360 | } |
| 361 | return fileName.toLowerCase(Locale.ROOT).endsWith(FILE_EXTENSION); |
| 362 | } |
| 363 | |
| 364 | /** |
| 365 | * Tells whether or not the given file is a ZAP add-on. |
no outgoing calls