Search in sources :

Example 1 with ZipFileProvider

use of org.apache.commons.vfs2.provider.zip.ZipFileProvider in project spoofax by metaborg.

the class DefaultFileSystemManagerProvider method addProviders.

protected void addProviders(DefaultFileSystemManager manager) throws FileSystemException {
    manager.addProvider("tmp", new TemporaryFileProvider());
    manager.addProvider("res", new ResourceFileProvider());
    manager.addProvider("ram", new RamFileProvider());
    manager.addProvider("zip", new ZipFileProvider());
    manager.addProvider("jar", new JarFileProvider());
    manager.addProvider("tar", new TarFileProvider());
    manager.addProvider("tgz", new TgzFileProvider());
    manager.addProvider("tbz2", new Tbz2FileProvider());
    manager.addProvider("gz", new GzipFileProvider());
    manager.addProvider("bz2", new Bzip2FileProvider());
    manager.addProvider("http", new HttpFileProvider());
    manager.addProvider("https", new HttpsFileProvider());
    manager.addProvider("ftp", new FtpFileProvider());
    manager.addProvider("ftps", new FtpsFileProvider());
}
Also used : JarFileProvider(org.apache.commons.vfs2.provider.jar.JarFileProvider) FtpFileProvider(org.apache.commons.vfs2.provider.ftp.FtpFileProvider) ZipFileProvider(org.apache.commons.vfs2.provider.zip.ZipFileProvider) Bzip2FileProvider(org.apache.commons.vfs2.provider.bzip2.Bzip2FileProvider) TarFileProvider(org.apache.commons.vfs2.provider.tar.TarFileProvider) TemporaryFileProvider(org.apache.commons.vfs2.provider.temp.TemporaryFileProvider) HttpFileProvider(org.apache.commons.vfs2.provider.http.HttpFileProvider) Tbz2FileProvider(org.apache.commons.vfs2.provider.tar.Tbz2FileProvider) GzipFileProvider(org.apache.commons.vfs2.provider.gzip.GzipFileProvider) HttpsFileProvider(org.apache.commons.vfs2.provider.https.HttpsFileProvider) TgzFileProvider(org.apache.commons.vfs2.provider.tar.TgzFileProvider) FtpsFileProvider(org.apache.commons.vfs2.provider.ftps.FtpsFileProvider) ResourceFileProvider(org.apache.commons.vfs2.provider.res.ResourceFileProvider) RamFileProvider(org.apache.commons.vfs2.provider.ram.RamFileProvider)

Example 2 with ZipFileProvider

use of org.apache.commons.vfs2.provider.zip.ZipFileProvider in project commons-vfs by apache.

the class Vfs444TestCase method prepare.

/**
 * Prepares the file system manager. This implementation does nothing.
 */
@Override
public void prepare(final DefaultFileSystemManager manager) throws Exception {
    manager.addProvider("res", new ResourceFileProvider());
    manager.addProvider("zip", new ZipFileProvider());
}
Also used : ZipFileProvider(org.apache.commons.vfs2.provider.zip.ZipFileProvider)

Aggregations

ZipFileProvider (org.apache.commons.vfs2.provider.zip.ZipFileProvider)2 Bzip2FileProvider (org.apache.commons.vfs2.provider.bzip2.Bzip2FileProvider)1 FtpFileProvider (org.apache.commons.vfs2.provider.ftp.FtpFileProvider)1 FtpsFileProvider (org.apache.commons.vfs2.provider.ftps.FtpsFileProvider)1 GzipFileProvider (org.apache.commons.vfs2.provider.gzip.GzipFileProvider)1 HttpFileProvider (org.apache.commons.vfs2.provider.http.HttpFileProvider)1 HttpsFileProvider (org.apache.commons.vfs2.provider.https.HttpsFileProvider)1 JarFileProvider (org.apache.commons.vfs2.provider.jar.JarFileProvider)1 RamFileProvider (org.apache.commons.vfs2.provider.ram.RamFileProvider)1 ResourceFileProvider (org.apache.commons.vfs2.provider.res.ResourceFileProvider)1 TarFileProvider (org.apache.commons.vfs2.provider.tar.TarFileProvider)1 Tbz2FileProvider (org.apache.commons.vfs2.provider.tar.Tbz2FileProvider)1 TgzFileProvider (org.apache.commons.vfs2.provider.tar.TgzFileProvider)1 TemporaryFileProvider (org.apache.commons.vfs2.provider.temp.TemporaryFileProvider)1