本文整理了Java中org.jboss.errai.reflections.vfs.ZipDir
类的一些代码示例,展示了ZipDir
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipDir
类的具体详情如下:
包路径:org.jboss.errai.reflections.vfs.ZipDir
类名称:ZipDir
[英]an implementation of org.jboss.errai.reflections.vfs.Vfs.Dir for java.util.zip.ZipFile
[中]org的一个实现。jboss。勘误表。反思。vfs。Vfs。java的目录。util。拉链ZipFile
代码示例来源:origin: errai/errai
public Dir createDir(final URL url) {
return new ZipDir(url);
}
},
代码示例来源:origin: errai/errai
public String getPath() {
return dir.getPath();
}
代码示例来源:origin: errai/errai
public Dir createDir(URL url) {
return new ZipDir(url);
}
},
代码示例来源:origin: errai/errai
public String getFullPath() {
return dir.getPath() + "/" + entry.getName();
}
代码示例来源:origin: errai/errai
public Dir createDir(URL url) {
return new ZipDir(url.toString().replaceFirst("vfszip:", "file:"));
}
}
代码示例来源:origin: errai/errai
@Override
public String toString() {
return dir.getPath() + "!" + java.io.File.separatorChar + entry.toString();
}
}
代码示例来源:origin: errai/errai
public Dir createDir(final URL url) {
try {
URL adaptedUrl = adaptURL(url);
return new ZipDir(adaptedUrl);
} catch (MalformedURLException e) {
e.printStackTrace();
return new ZipDir(url);
}
}
代码示例来源:origin: errai/errai
public Dir createDir(URL url) {
return new ZipDir(url.toString().replaceFirst("vfsfile:", "file:"));
}
},
代码示例来源:origin: org.jboss.errai/errai-common
public Vfs.Dir createDir(final URL url) {
final File file = new File(url.toExternalForm());
if (file.isDirectory())
return new SystemDir(url);
else
return new ZipDir(url);
}
}
代码示例来源:origin: errai/errai
public Vfs.Dir createDir(final URL url) {
final File file = new File(url.toExternalForm());
if (file.isDirectory())
return new SystemDir(url);
else
return new ZipDir(url);
}
}
代码示例来源:origin: stackoverflow.com
oneJarClassFiles.add(new ZipFile(new ZipDir(oneJarFile), entries.nextElement()));
代码示例来源:origin: errai/errai
return new ZipDir(targetURL);
代码示例来源:origin: stackoverflow.com
return file.exists() && file.canRead() ? file.isDirectory() ? new SystemDir(file) : new ZipDir(new JarFile(file)) : null;
} catch (IOException e) {
e.printStackTrace();
内容来源于网络,如有侵权,请联系作者删除!