| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: The last segment of the path without any dot suffixThe string path path)Retrieve the basename of a path. |
| public static String | Returns: The last segment extension. Null if input uri is null, or scheme is null, or URI is not a `jar:file:` or `file:` based URIThe URI to search uri)Retrieve the extension of a URI path. |
| public static String | Returns: The last segment extension, or null if not a file, or null if there is no extension presentThe string path path)Retrieve the extension of a file path (not a directory). |
| public static String | Returns: The last segment extension excluding the leading dot; or null if not a file; or null if there is no extension presentThe string path filename)Retrieve the extension of a file path (not a directory). |
| public static String | Returns: The last segment of the urithe URI to look for the filename uri)Get the last segment of the URI returning it as the filename |
| public static String | Returns: The last segment of the paththe string path to look for the filename path)Get the last segment of a String path returning it as the filename |
| public static boolean | Returns: true if the directory name exists in path, false if otherwisethe path to search path, String the segment name (of the given path) to look for (case-insensitive lookup),
only capable of searching 1 segment name at a time, does not support "foo/bar" multi-segment
names. segmentName)Does the provided path have a directory segment with the given name. |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if the filename ends with.classthe path to test path)Predicate to test for class files |
| public static boolean | Returns: true if Path is a file, and has an extension, and it matches any of the indicated extensionsthe Path to test path, String... the list of extensions (all lowercase, without preceding extensions). dot)Test if Path matches any of the indicated extensions. |
| public static boolean | Returns: true if URI has an extension, and it matches any of the indicated extensionsthe URI to test uri, String... the list of extensions (all lowercase, without preceding extensions). dot)Test if URI matches any of the indicated extensions. |
| public static boolean | Returns: true if filename has an extension, and it matches any of the indicated extensionsthe filename to test filename, String... the list of extensions (all lowercase, without preceding extensions). dot)Test if filename matches any of the indicated extensions. |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: True if a jar file.the uri to test. uri)Is the URI pointing to a Java Archive (JAR) File (not directory) |
| public static boolean | Returns: True if a jar file.the path to test. path)Is the path a Java Archive (JAR) File (not directory) |
| public static boolean | Returns: True if a jar file.the filename to test. filename)Is the filename a JAR file. |
| public static boolean | Returns: true if path is a file, and an extension ofjar, or zipthe path to test path)Test if Path is any supported Java Library Archive type (suitable to use as a library in a classpath/classloader) |
| public static boolean | Returns: true if path is a file and name ends withjar, or zipthe filename to test filename)Test if filename is any supported Java Library Archive type (suitable to use as a library in a classpath/classloader) |
| public static boolean | Returns: true if the URI has a path that seems to point to a (jar, or zip).the URI to test uri)Test if URI is any supported Java Library Archive type (suitable to use as a library in a classpath/classloader) |
| public static boolean | Returns: true if path is inMETA-INF/versions/* treethe path to test path)Predicate to filter on |
| public static boolean | Returns: true if not amodule-info.class filethe path to test path)Predicate to skip |
| public static boolean | Returns: true if not inMETA-INF/versions/* treethe path to test path)Predicate to skip |
| public static boolean | Returns: true if not amodule-info.class filethe path to test path)Predicate to skip |
| public static boolean | |
| public static boolean | Returns: True if a war file.the path to test. path)Is the path a Web Archive File (not directory) |
| public static boolean | Returns: True if a war file.the uri to test. uri)Is the path a Web Archive File (not directory) |
| public static boolean | Returns: True if a war file.the filename to test. filename)Is the filename a WAR file. |
| public static boolean | |
| public static boolean | |
| private static boolean |
| NUMBER | back to summary |
|---|---|
| private static final Pattern NUMBER | |
| FileID | back to summary |
|---|---|
| public FileID() | |
| getBasename | back to summary |
|---|---|
| public static String getBasename(Path path) Retrieve the basename of a path. This is the name of the last segment of the path, with any dot suffix (e.g. ".war") removed | |
| getExtension | back to summary |
|---|---|
| public static String getExtension(URI uri) Retrieve the extension of a URI path. This is the name of the last segment of the URI path with a substring for the extension (if any), excluding the dot, lower-cased.
| |
| getExtension | back to summary |
|---|---|
| public static String getExtension(Path path) Retrieve the extension of a file path (not a directory). This is the name of the last segment of the file path with a substring for the extension (if any), excluding the dot, lower-cased.
| |
| getExtension | back to summary |
|---|---|
| public static String getExtension(String filename) Retrieve the extension of a file path (not a directory). This is the extension of filename of the last segment of the file path with a substring for the extension (if any), including the dot, lower-cased. | |
| getFileName | back to summary |
|---|---|
| public static String getFileName(URI uri) Get the last segment of the URI returning it as the filename | |
| getFileName | back to summary |
|---|---|
| public static String getFileName(String path) Get the last segment of a String path returning it as the filename | |
| hasNamedPathSegment | back to summary |
|---|---|
| public static boolean hasNamedPathSegment(Path path, String segmentName) Does the provided path have a directory segment with the given name.
| |
| isArchive | back to summary |
|---|---|
| public static boolean isArchive(Path path) Test if Path is any supported Java Archive type (ends in
| |
| isArchive | back to summary |
|---|---|
| public static boolean isArchive(String filename) Test if filename is any supported Java Archive type (ends in
| |
| isArchive | back to summary |
|---|---|
| public static boolean isArchive(URI uri) Test if URI is any supported Java Archive type.
| |
| isClassFile | back to summary |
|---|---|
| public static boolean isClassFile(Path path) Predicate to test for class files
| |
| isExtension | back to summary |
|---|---|
| public static boolean isExtension(Path path, String... extensions) Test if Path matches any of the indicated extensions. | |
| isExtension | back to summary |
|---|---|
| public static boolean isExtension(URI uri, String... extensions) Test if URI matches any of the indicated extensions. | |
| isExtension | back to summary |
|---|---|
| public static boolean isExtension(String filename, String... extensions) Test if filename matches any of the indicated extensions. | |
| isHidden | back to summary |
|---|---|
| public static boolean isHidden(Path path) Predicate useful for
| |
| isHidden | back to summary |
|---|---|
| public static boolean isHidden(Path base, Path path) Predicate useful for
| |
| isJavaArchive | back to summary |
|---|---|
| public static boolean isJavaArchive(URI uri) Is the URI pointing to a Java Archive (JAR) File (not directory)
| |
| isJavaArchive | back to summary |
|---|---|
| public static boolean isJavaArchive(Path path) Is the path a Java Archive (JAR) File (not directory)
| |
| isJavaArchive | back to summary |
|---|---|
| public static boolean isJavaArchive(String filename) Is the filename a JAR file.
| |
| isLibArchive | back to summary |
|---|---|
| public static boolean isLibArchive(Path path) Test if Path is any supported Java Library Archive type (suitable to use as a library in a classpath/classloader)
| |
| isLibArchive | back to summary |
|---|---|
| public static boolean isLibArchive(String filename) Test if filename is any supported Java Library Archive type (suitable to use as a library in a classpath/classloader)
| |
| isLibArchive | back to summary |
|---|---|
| public static boolean isLibArchive(URI uri) Test if URI is any supported Java Library Archive type (suitable to use as a library in a classpath/classloader)
| |
| isMetaInfVersions | back to summary |
|---|---|
| public static boolean isMetaInfVersions(Path path) Predicate to filter on This only works with a zipfs based FileSystem
| |
| isModuleInfoClass | back to summary |
|---|---|
| public static boolean isModuleInfoClass(Path path) Predicate to skip
This is a simple test against the last path segment using
| |
| isNotMetaInfVersions | back to summary |
|---|---|
| public static boolean isNotMetaInfVersions(Path path) Predicate to skip This only works with a zipfs based FileSystem
| |
| isNotModuleInfoClass | back to summary |
|---|---|
| public static boolean isNotModuleInfoClass(Path path) Predicate to skip
This is a simple test against the last path segment using
| |
| isTld | back to summary |
|---|---|
| public static boolean isTld(Path path) Is the path a TLD File
| |
| isWebArchive | back to summary |
|---|---|
| public static boolean isWebArchive(Path path) Is the path a Web Archive File (not directory)
| |
| isWebArchive | back to summary |
|---|---|
| public static boolean isWebArchive(URI uri) Is the path a Web Archive File (not directory)
| |
| isWebArchive | back to summary |
|---|---|
| public static boolean isWebArchive(String filename) Is the filename a WAR file.
| |
| isXml | back to summary |
|---|---|
| public static boolean isXml(Path path) Is the Path a file that ends in XML?
| |
| isXml | back to summary |
|---|---|
| public static boolean isXml(String filename) Is the Path a file that ends in XML?
| |
| matchesExtension | back to summary |
|---|---|
| private static boolean matchesExtension(String ext, String... extensions) | |