📄 aejarreader.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: AEJarReader.java
package org.gudy.azureus2.core3.util.jar;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
import java.util.jar.JarEntry;
import java.util.jar.JarInputStream;
import org.gudy.azureus2.core3.util.Debug;
public class AEJarReader
{
protected Map entries;
public AEJarReader(String name)
{
InputStream is;
JarInputStream jis;
entries = new HashMap();
is = null;
jis = null;
is = getClass().getClassLoader().getResourceAsStream(name);
jis = new JarInputStream(is);
do
{
JarEntry ent = jis.getNextJarEntry();
if (ent == null)
break;
if (!ent.isDirectory())
{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte buffer[] = new byte[8192];
do
{
int l = jis.read(buffer);
if (l <= 0)
break;
baos.write(buffer, 0, l);
} while (true);
entries.put(ent.getName(), new ByteArrayInputStream(baos.toByteArray()));
}
} while (true);
Throwable e;
try
{
if (jis != null)
jis.close();
if (is != null)
is.close();
}
// Misplaced declaration of an exception variable
catch (Throwable e) { }
break MISSING_BLOCK_LABEL_221;
e;
Debug.printStackTrace(e);
try
{
if (jis != null)
jis.close();
if (is != null)
is.close();
}
// Misplaced declaration of an exception variable
catch (Throwable e) { }
break MISSING_BLOCK_LABEL_221;
Exception exception;
exception;
try
{
if (jis != null)
jis.close();
if (is != null)
is.close();
}
catch (Throwable e) { }
throw exception;
}
public InputStream getResource(String name)
{
return (InputStream)entries.get(name);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -