Package org.reflections.vfs
Class UrlTypeVFS
- java.lang.Object
-
- org.reflections.vfs.UrlTypeVFS
-
- All Implemented Interfaces:
Vfs.UrlType
public class UrlTypeVFS extends java.lang.Object implements Vfs.UrlType
UrlType to be used by Reflections library. This class handles the vfszip and vfsfile protocol of JBOSS files.to use it, register it in Vfs via
Vfs.addDefaultURLTypes(org.reflections.vfs.Vfs.UrlType)orVfs.setDefaultURLTypes(java.util.List).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]REPLACE_EXTENSION(package private) java.lang.StringVFSFILE(package private) java.lang.StringVFSZIP
-
Constructor Summary
Constructors Constructor Description UrlTypeVFS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URLadaptURL(java.net.URL url)Vfs.DircreateDir(java.net.URL url)(package private) intfindFirstMatchOfDeployableExtention(java.lang.String path, int pos)booleanmatches(java.net.URL url)(package private) java.net.URLreplaceZipSeparators(java.lang.String path, java.util.function.Predicate<java.io.File> acceptFile)(package private) java.net.URLreplaceZipSeparatorStartingFrom(java.lang.String path, int pos)
-
-
-
Field Detail
-
REPLACE_EXTENSION
public static final java.lang.String[] REPLACE_EXTENSION
-
VFSZIP
final java.lang.String VFSZIP
- See Also:
- Constant Field Values
-
VFSFILE
final java.lang.String VFSFILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
matches
public boolean matches(java.net.URL url)
- Specified by:
matchesin interfaceVfs.UrlType
-
createDir
public Vfs.Dir createDir(java.net.URL url)
- Specified by:
createDirin interfaceVfs.UrlType
-
adaptURL
public java.net.URL adaptURL(java.net.URL url) throws java.net.MalformedURLException- Throws:
java.net.MalformedURLException
-
replaceZipSeparators
java.net.URL replaceZipSeparators(java.lang.String path, java.util.function.Predicate<java.io.File> acceptFile) throws java.net.MalformedURLException- Throws:
java.net.MalformedURLException
-
findFirstMatchOfDeployableExtention
int findFirstMatchOfDeployableExtention(java.lang.String path, int pos)
-
replaceZipSeparatorStartingFrom
java.net.URL replaceZipSeparatorStartingFrom(java.lang.String path, int pos) throws java.net.MalformedURLException- Throws:
java.net.MalformedURLException
-
-