public class JarFile extends JarFileSE
JarFileSE の拡張バリアント。同じように動作しますが、以下の追加機能を提供します。| 修飾子と型 | フィールドと説明 |
|---|---|
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 |
OPEN_DELETESE, OPEN_READSE| 修飾子と型 | メソッドと説明 |
|---|---|
void | clearCache() |
void | close() |
boolean | containsEntry(StringSE name) |
EnumerationSE<JarEntrySE> | entries() |
StringSE | getComment() |
ZipEntrySE | getEntry(StringSE name) |
InputStreamSE | getInputStream(ZipEntrySE entry) |
org.springframework.boot.loader.jar.JarEntry | getJarEntry(CharSequenceSE name) |
org.springframework.boot.loader.jar.JarEntry | getJarEntry(StringSE name) |
ManifestSE | getManifest() |
StringSE | getName() |
JarFile | getNestedJarFile(org.springframework.boot.loader.jar.JarEntry entry) 指定されたエントリからロードされたネストされた JarFile を返します。 |
JarFile | getNestedJarFile(ZipEntrySE entry) 指定されたエントリからロードされたネストされた JarFile を返します。 |
protected StringSE | getPathFromRoot() |
protected RandomAccessDataFile | getRootJarFile() |
URLSE | getUrl() この JAR ファイルへのアクセスに使用できる URL を返します。 |
static void | registerUrlProtocolHandler()jar URL を処理するために URLStreamHandlerSE が配置されるように、"java.protocol.handler.pkgs" プロパティを登録します。 |
int | size() |
StringSE | toString() |
finalizeSEcloneSE, equalsSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic static final long LOCSIG
public static final long EXTSIG
public static final long CENSIG
public static final long ENDSIG
public static final int LOCHDR
public static final int EXTHDR
public static final int CENHDR
public static final int ENDHDR
public static final int LOCVER
public static final int LOCFLG
public static final int LOCHOW
public static final int LOCTIM
public static final int LOCCRC
public static final int LOCSIZ
public static final int LOCLEN
public static final int LOCNAM
public static final int LOCEXT
public static final int EXTCRC
public static final int EXTSIZ
public static final int EXTLEN
public static final int CENVEM
public static final int CENVER
public static final int CENFLG
public static final int CENHOW
public static final int CENTIM
public static final int CENCRC
public static final int CENSIZ
public static final int CENLEN
public static final int CENNAM
public static final int CENEXT
public static final int CENCOM
public static final int CENDSK
public static final int CENATT
public static final int CENATX
public static final int CENOFF
public static final int ENDSUB
public static final int ENDTOT
public static final int ENDSIZ
public static final int ENDOFF
public static final int ENDCOM
public JarFile(FileSE file) throws IOExceptionSE
JarFile を作成します。file - ルート jar ファイル IOExceptionSE - ファイルを読み取れない場合 protected final RandomAccessDataFile getRootJarFile()
public ManifestSE getManifest() throws IOExceptionSE
JarFileSE の getManifestSE IOExceptionSEpublic EnumerationSE<JarEntrySE> entries()
public org.springframework.boot.loader.jar.JarEntry getJarEntry(CharSequenceSE name)
public org.springframework.boot.loader.jar.JarEntry getJarEntry(StringSE name)
JarFileSE の getJarEntrySE public boolean containsEntry(StringSE name)
public ZipEntrySE getEntry(StringSE name)
JarFileSE の getEntrySE public InputStreamSE getInputStream(ZipEntrySE entry) throws IOExceptionSE
JarFileSE の getInputStreamSE IOExceptionSEpublic JarFile getNestedJarFile(ZipEntrySE entry) throws IOExceptionSE
JarFile を返します。entry - zip エントリ JarFileIOExceptionSE - ネストされた jar ファイルを読み取ることができない場合 public JarFile getNestedJarFile(org.springframework.boot.loader.jar.JarEntry entry) throws IOExceptionSE
JarFile を返します。entry - zip エントリ JarFileIOExceptionSE - ネストされた jar ファイルを読み取ることができない場合 public StringSE getComment()
ZipFileSE の getCommentSE public void close()
throws IOExceptionSECloseableSE 内の closeSE AutoCloseableSE 内の closeSE ZipFileSE の closeSE IOExceptionSEpublic URLSE getUrl() throws MalformedURLExceptionSE
MalformedURLExceptionSE - URL の形式が正しくない場合 public StringSE toString()
ObjectSE の toStringSE public void clearCache()
protected StringSE getPathFromRoot()
public static void registerUrlProtocolHandler()
URLStreamHandlerSE が配置されるように、"java.protocol.handler.pkgs" プロパティを登録します。Copyright © 2019 Pivotal Software, Inc.. All rights reserved.