Package org.reflections.vfs
Class UrlTypeVFS
- java.lang.Object
-
- org.reflections.vfs.UrlTypeVFS
-
- All Implemented Interfaces:
Vfs.UrlType
public class UrlTypeVFS extends 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).- Author:
- Sergio Pola
-
-
Field Summary
Fields Modifier and Type Field Description static String[]REPLACE_EXTENSION
-
Constructor Summary
Constructors Constructor Description UrlTypeVFS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLadaptURL(URL url)Vfs.DircreateDir(URL url)booleanmatches(URL url)
-
-
-
Field Detail
-
REPLACE_EXTENSION
public static final String[] REPLACE_EXTENSION
-
-
Method Detail
-
matches
public boolean matches(URL url)
- Specified by:
matchesin interfaceVfs.UrlType
-
createDir
public Vfs.Dir createDir(URL url)
- Specified by:
createDirin interfaceVfs.UrlType
-
adaptURL
public URL adaptURL(URL url) throws MalformedURLException
- Throws:
MalformedURLException
-
-