类 NestedJarFile
java.lang.Object
java.util.zip.ZipFile
java.util.jar.JarFile
org.springframework.boot.loader.jar.NestedJarFile
- 所有已实现的接口:
Closeable
,AutoCloseable
Extended variant of
JarFile
that behaves in the same way but can open nested
jars.- 从以下版本开始:
- 3.2.0
- 作者:
- Phillip Webb, Andy Wilkinson
-
字段概要
字段修饰符和类型字段说明static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final long
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final long
static final int
static final int
static final int
static final int
static final int
static final int
static final long
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final long
static final int
static final int
static final int
从类继承的字段 java.util.jar.JarFile
MANIFEST_NAME
从类继承的字段 java.util.zip.ZipFile
OPEN_DELETE, OPEN_READ
-
构造器概要
构造器构造器说明NestedJarFile
(File file, String nestedEntryName) Creates a newNestedJarFile
instance to read from the specificFile
.NestedJarFile
(File file, String nestedEntryName, Runtime.Version version) Creates a newNestedJarFile
instance to read from the specificFile
. -
方法概要
修饰符和类型方法说明void
Clear any internal caches.void
close()
entries()
getInputStream
(ZipEntry entry) getJarEntry
(String name) getName()
boolean
Return if an entry with the given name exists.int
size()
stream()
从类继承的方法 java.util.jar.JarFile
baseVersion, getVersion, isMultiRelease, runtimeVersion
-
字段详细资料
-
LOCSIG
static final long LOCSIG- 另请参阅:
-
EXTSIG
static final long EXTSIG- 另请参阅:
-
CENSIG
static final long CENSIG- 另请参阅:
-
ENDSIG
static final long ENDSIG- 另请参阅:
-
LOCHDR
static final int LOCHDR- 另请参阅:
-
EXTHDR
static final int EXTHDR- 另请参阅:
-
CENHDR
static final int CENHDR- 另请参阅:
-
ENDHDR
static final int ENDHDR- 另请参阅:
-
LOCVER
static final int LOCVER- 另请参阅:
-
LOCFLG
static final int LOCFLG- 另请参阅:
-
LOCHOW
static final int LOCHOW- 另请参阅:
-
LOCTIM
static final int LOCTIM- 另请参阅:
-
LOCCRC
static final int LOCCRC- 另请参阅:
-
LOCSIZ
static final int LOCSIZ- 另请参阅:
-
LOCLEN
static final int LOCLEN- 另请参阅:
-
LOCNAM
static final int LOCNAM- 另请参阅:
-
LOCEXT
static final int LOCEXT- 另请参阅:
-
EXTCRC
static final int EXTCRC- 另请参阅:
-
EXTSIZ
static final int EXTSIZ- 另请参阅:
-
EXTLEN
static final int EXTLEN- 另请参阅:
-
CENVEM
static final int CENVEM- 另请参阅:
-
CENVER
static final int CENVER- 另请参阅:
-
CENFLG
static final int CENFLG- 另请参阅:
-
CENHOW
static final int CENHOW- 另请参阅:
-
CENTIM
static final int CENTIM- 另请参阅:
-
CENCRC
static final int CENCRC- 另请参阅:
-
CENSIZ
static final int CENSIZ- 另请参阅:
-
CENLEN
static final int CENLEN- 另请参阅:
-
CENNAM
static final int CENNAM- 另请参阅:
-
CENEXT
static final int CENEXT- 另请参阅:
-
CENCOM
static final int CENCOM- 另请参阅:
-
CENDSK
static final int CENDSK- 另请参阅:
-
CENATT
static final int CENATT- 另请参阅:
-
CENATX
static final int CENATX- 另请参阅:
-
CENOFF
static final int CENOFF- 另请参阅:
-
ENDSUB
static final int ENDSUB- 另请参阅:
-
ENDTOT
static final int ENDTOT- 另请参阅:
-
ENDSIZ
static final int ENDSIZ- 另请参阅:
-
ENDOFF
static final int ENDOFF- 另请参阅:
-
ENDCOM
static final int ENDCOM- 另请参阅:
-
-
构造器详细资料
-
NestedJarFile
Creates a newNestedJarFile
instance to read from the specificFile
.- 参数:
file
- the jar file to be opened for readingnestedEntryName
- the nested entry name to open- 抛出:
IOException
- on I/O errorIllegalArgumentException
- ifnestedEntryName
isnull
or empty
-
NestedJarFile
Creates a newNestedJarFile
instance to read from the specificFile
.- 参数:
file
- the jar file to be opened for readingnestedEntryName
- the nested entry name to openversion
- the release version to use when opening a multi-release jar- 抛出:
IOException
- on I/O errorIllegalArgumentException
- ifnestedEntryName
isnull
or empty
-
-
方法详细资料
-
getRawZipDataInputStream
- 抛出:
IOException
-
getManifest
- 覆盖:
getManifest
在类中JarFile
- 抛出:
IOException
-
entries
-
stream
-
versionedStream
- 覆盖:
versionedStream
在类中JarFile
-
getJarEntry
- 覆盖:
getJarEntry
在类中JarFile
-
getEntry
-
hasEntry
Return if an entry with the given name exists.- 参数:
name
- the name to check- 返回:
- if the entry exists
-
getInputStream
- 覆盖:
getInputStream
在类中JarFile
- 抛出:
IOException
-
getComment
- 覆盖:
getComment
在类中ZipFile
-
size
public int size() -
close
- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中Closeable
- 覆盖:
close
在类中ZipFile
- 抛出:
IOException
-
getName
-
clearCache
public void clearCache()Clear any internal caches.
-