本文整理了Java中org.crsh.util.ZipIterator.create()
方法的一些代码示例,展示了ZipIterator.create()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipIterator.create()
方法的具体详情如下:
包路径:org.crsh.util.ZipIterator
类名称:ZipIterator
方法名:create
暂无
代码示例来源:origin: crashub/crash
public static ZipIterator create(URL url) throws IOException, URISyntaxException {
if (url.getProtocol().equals("file")) {
return create(Utils.toFile(url));
} else if (url.getProtocol().equals("jar")) {
int pos = url.getPath().lastIndexOf("!/");
URL jarURL = new URL(url.getPath().substring(0, pos));
String path = url.getPath().substring(pos + 2);
final ZipIterator container = create(jarURL);
ZipIterator zip = null;
try {
zip = create(filter);
break;
return create(url.openStream());
代码示例来源:origin: crashub/crash
URL jarURL = new URL(url.getPath().substring(0, pos));
String path = url.getPath().substring(pos + 2);
ZipIterator i = ZipIterator.create(jarURL);
try {
while (i.hasNext()) {
代码示例来源:origin: com.github.corda.crash/crash.shell
public static ZipIterator create(URL url) throws IOException, URISyntaxException {
if (url.getProtocol().equals("file")) {
return create(Utils.toFile(url));
} else if (url.getProtocol().equals("jar")) {
int pos = url.getPath().lastIndexOf("!/");
URL jarURL = new URL(url.getPath().substring(0, pos));
String path = url.getPath().substring(pos + 2);
final ZipIterator container = create(jarURL);
ZipIterator zip = null;
try {
zip = create(filter);
break;
return create(url.openStream());
代码示例来源:origin: org.crashub/crash.shell
public static ZipIterator create(URL url) throws IOException, URISyntaxException {
if (url.getProtocol().equals("file")) {
return create(Utils.toFile(url));
} else if (url.getProtocol().equals("jar")) {
int pos = url.getPath().lastIndexOf("!/");
URL jarURL = new URL(url.getPath().substring(0, pos));
String path = url.getPath().substring(pos + 2);
final ZipIterator container = create(jarURL);
ZipIterator zip = null;
try {
zip = create(filter);
break;
return create(url.openStream());
代码示例来源:origin: org.crashub/crash.shell
URL jarURL = new URL(url.getPath().substring(0, pos));
String path = url.getPath().substring(pos + 2);
ZipIterator i = ZipIterator.create(jarURL);
try {
while (i.hasNext()) {
代码示例来源:origin: com.github.corda.crash/crash.shell
URL jarURL = new URL(url.getPath().substring(0, pos));
String path = url.getPath().substring(pos + 2);
ZipIterator i = ZipIterator.create(jarURL);
try {
while (i.hasNext()) {
内容来源于网络,如有侵权,请联系作者删除!