public class UrlTypeVFS extends java.lang.Object implements Vfs.UrlType
to use it, register it in Vfs via Vfs.addDefaultURLTypes(org.reflections.vfs.Vfs.UrlType)
or Vfs.setDefaultURLTypes(java.util.List)
.
Modifier and Type | Field and Description |
---|---|
(package private) com.google.common.base.Predicate<java.io.File> |
realFile |
static java.lang.String[] |
REPLACE_EXTENSION |
(package private) java.lang.String |
VFSFILE |
(package private) java.lang.String |
VFSZIP |
Constructor and Description |
---|
UrlTypeVFS() |
Modifier and Type | Method and 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,
com.google.common.base.Predicate<java.io.File> acceptFile) |
(package private) java.net.URL |
replaceZipSeparatorStartingFrom(java.lang.String path,
int pos) |
public static final java.lang.String[] REPLACE_EXTENSION
final java.lang.String VFSZIP
final java.lang.String VFSFILE
com.google.common.base.Predicate<java.io.File> realFile
public boolean matches(java.net.URL url)
matches
in interface Vfs.UrlType
public Vfs.Dir createDir(java.net.URL url)
createDir
in interface Vfs.UrlType
public java.net.URL adaptURL(java.net.URL url) throws java.net.MalformedURLException
java.net.MalformedURLException
java.net.URL replaceZipSeparators(java.lang.String path, com.google.common.base.Predicate<java.io.File> acceptFile) throws java.net.MalformedURLException
java.net.MalformedURLException
int findFirstMatchOfDeployableExtention(java.lang.String path, int pos)
java.net.URL replaceZipSeparatorStartingFrom(java.lang.String path, int pos) throws java.net.MalformedURLException
java.net.MalformedURLException