org.jboss.errai.reflections.vfs
Class UrlTypeVFS
java.lang.Object
org.jboss.errai.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.jboss.errai.reflections.vfs.Vfs.UrlType)
or Vfs.setDefaultURLTypes(java.util.List)
.
- Author:
- Sergio Pola
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REPLACE_EXTENSION
public static final String[] REPLACE_EXTENSION
UrlTypeVFS
public UrlTypeVFS()
matches
public boolean matches(URL url)
- Specified by:
matches
in interface Vfs.UrlType
createDir
public Vfs.Dir createDir(URL url)
- Specified by:
createDir
in interface Vfs.UrlType
adaptURL
public URL adaptURL(URL url)
throws MalformedURLException
- Throws:
MalformedURLException
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.