org.crsh.util.ZipIterator.create()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(98)

本文整理了Java中org.crsh.util.ZipIterator.create()方法的一些代码示例,展示了ZipIterator.create()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipIterator.create()方法的具体详情如下:
包路径:org.crsh.util.ZipIterator
类名称:ZipIterator
方法名:create

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()) {

相关文章