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 (package private) java.util.function.Predicate<java.io.File>
realFile
static java.lang.String[]
REPLACE_EXTENSION
(package private) java.lang.String
VFSFILE
(package private) java.lang.String
VFSZIP
-
Constructor Summary
Constructors Constructor Description UrlTypeVFS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URL
adaptURL(java.net.URL url)
Vfs.Dir
createDir(java.net.URL url)
(package private) int
findFirstMatchOfDeployableExtention(java.lang.String path, int pos)
boolean
matches(java.net.URL url)
(package private) java.net.URL
replaceZipSeparators(java.lang.String path, java.util.function.Predicate<java.io.File> acceptFile)
(package private) java.net.URL
replaceZipSeparatorStartingFrom(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
-
realFile
java.util.function.Predicate<java.io.File> realFile
-
-
Method Detail
-
matches
public boolean matches(java.net.URL url)
- Specified by:
matches
in interfaceVfs.UrlType
-
createDir
public Vfs.Dir createDir(java.net.URL url)
- Specified by:
createDir
in 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
-
-