| |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.util.jar
类 JarInputStream
java.lang.Object java.io.InputStream java.io.FilterInputStream java.util.zip.InflaterInputStream java.util.zip.ZipInputStream java.util.jar.JarInputStream
- 所有已实现的接口:
- Closeable
public class JarInputStream
- extends ZipInputStream
JarInputStream
类用于从任何输入流读取 JAR 文件内容。它扩展了 java.util.zip.ZipInputStream
类,使之支持读取可选的 Manifest
条目。Manifest
可用于存储有关 JAR 文件及其条目的元信息。
- 从以下版本开始:
- 1.2
- 另请参见:
Manifest
,ZipInputStream
字段摘要 | |
---|---|
static int | CENATT |
static int | CENATX |
static int | CENCOM |
static int | CENCRC |
static int | CENDSK |
static int | CENEXT |
static int | CENFLG |
static int | CENHDR |
static int | CENHOW |
static int | CENLEN |
static int | CENNAM |
static int | CENOFF |
static long | CENSIG |
static int | CENSIZ |
static int | CENTIM |
static int | CENVEM |
static int | CENVER |
static int | ENDCOM |
static int | ENDHDR |
static int | ENDOFF |
static long | ENDSIG |
static int | ENDSIZ |
static int | ENDSUB |
static int | ENDTOT |
static int | EXTCRC |
static int | EXTHDR |
static int | EXTLEN |
static long | EXTSIG |
static int | EXTSIZ |
static int | LOCCRC |
static int | LOCEXT |
static int | LOCFLG |
static int | LOCHDR |
static int | LOCHOW |
static int | LOCLEN |
static int | LOCNAM |
static long | LOCSIG |
static int | LOCSIZ |
static int | LOCTIM |
static int | LOCVER |
从类 java.util.zip.InflaterInputStream 继承的字段 |
---|
buf, inf, len |
从类 java.io.FilterInputStream 继承的字段 |
---|
in |
构造方法摘要 | |
---|---|
JarInputStream(InputStream in) 创建新的 JarInputStream 并读取可选的清单。 | |
JarInputStream(InputStream in, boolean verify) 创建新的 JarInputStream 并读取可选的清单。 |
方法摘要 | |
---|---|
protected ZipEntry | createZipEntry(String name) 为指定的 JAR 文件条目名称创建新的 JarEntry (ZipEntry )。 |
Manifest | getManifest() 返回此 JAR 文件的 Manifest ;如果没有,则返回 null 。 |
ZipEntry | getNextEntry() 读取下一个 ZIP 文件条目,并将流定位于此条目数据的开始处。 |
JarEntry | getNextJarEntry() 读取下一个 JAR 文件条目,并将流定位于此条目数据的开始处。 |
int | read(byte[] b, int off, int len) 从当前 JAR 文件条目读入字节数组。 |
从类 java.util.zip.ZipInputStream 继承的方法 |
---|
available, close, closeEntry, skip |
从类 java.util.zip.InflaterInputStream 继承的方法 |
---|
fill, mark, markSupported, read, reset |
从类 java.io.FilterInputStream 继承的方法 |
---|
read |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
LOCSIG
public static final long LOCSIG
- 另请参见:
- 常量字段值
EXTSIG
public static final long EXTSIG
- 另请参见:
- 常量字段值
CENSIG
public static final long CENSIG
- 另请参见:
- 常量字段值
ENDSIG
public static final long ENDSIG
- 另请参见:
- 常量字段值
LOCHDR
public static final int LOCHDR
- 另请参见:
- 常量字段值
EXTHDR
public static final int EXTHDR
- 另请参见:
- 常量字段值
CENHDR
public static final int CENHDR
- 另请参见:
- 常量字段值