public class JarFileArchive extends ObjectSE implements Archive
Archive.Entry, Archive.EntryFilter
コンストラクターと説明 |
---|
JarFileArchive(FileSE file) |
JarFileArchive(FileSE file, URLSE url) |
JarFileArchive(JarFile jarFile) |
修飾子と型 | メソッドと説明 |
---|---|
void | close() Archive を閉じて、開いているリソースを解放します。 |
ManifestSE | getManifest() アーカイブのマニフェストを返します。 |
protected Archive | getNestedArchive(Archive.Entry entry) |
IteratorSE<Archive> | getNestedArchives(Archive.EntryFilter searchFilter, Archive.EntryFilter includeFilter) 指定されたフィルターに一致するエントリのネストされた Archive を返します。 |
URLSE | getUrl() アーカイブのロードに使用できる URL を返します。 |
IteratorSE<Archive.Entry> | iterator() 使用すべきではありません。 |
StringSE | toString() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
forEach, getNestedArchives, isExploded, spliterator
public JarFileArchive(FileSE file) throws IOExceptionSE
public JarFileArchive(FileSE file, URLSE url) throws IOExceptionSE
public JarFileArchive(JarFile jarFile)
public URLSE getUrl() throws MalformedURLExceptionSE
Archive
Archive
の getUrl
MalformedURLExceptionSE
- URL の形式が正しくない場合 public ManifestSE getManifest() throws IOExceptionSE
Archive
Archive
の getManifest
IOExceptionSE
- マニフェストが読み取れない場合 public IteratorSE<Archive> getNestedArchives(Archive.EntryFilter searchFilter, Archive.EntryFilter includeFilter) throws IOExceptionSE
Archive
Archive
を返します。Archive
の getNestedArchives
searchFilter
- 追加のサブエントリ検索が必要な場合を制限するために使用されるフィルター、またはすべてのエントリを考慮する必要がある場合は null
。includeFilter
- 結果に含めるエントリを決定するために使用されるフィルター、またはすべてのエントリを含める必要がある場合は null
IOExceptionSE
- IO エラー時 @DeprecatedSE public IteratorSE<Archive.Entry> iterator()
Archive
IterableSE<Archive.Entry>
の iteratorSE
Archive
の iterator
Iterable.iterator()
SEpublic void close() throws IOExceptionSE
Archive
Archive
を閉じて、開いているリソースを解放します。AutoCloseableSE
の closeSE
Archive
の close
IOExceptionSE
protected Archive getNestedArchive(Archive.Entry entry) throws IOExceptionSE
public StringSE toString()
ObjectSE
の toStringSE