public class JarWriter extends ObjectSE implements LoaderClassesWriter, AutoCloseableSE
| コンストラクターと説明 |
|---|
JarWriter(FileSE file) 新しい JarWriter インスタンスを作成します。 |
JarWriter(FileSE file, LaunchScript launchScript) 新しい JarWriter インスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | close() ライターを閉じます。 |
void | writeEntries(JarFileSE jarFile) 指定された jar ファイルからすべてのエントリを書き込みます。 |
void | writeEntry(StringSE entryName, InputStreamSE inputStream) エントリを書き込みます。 |
void | writeLoaderClasses() 必要な spring-boot-loader クラスを JAR に書き込みます。 |
void | writeLoaderClasses(StringSE loaderJarResourceName) 必要な spring-boot-loader クラスを JAR に書き込みます。 |
void | writeManifest(ManifestSE manifest) 指定されたマニフェストを書き込みます。 |
void | writeNestedLibrary(StringSE destination, Library library) ネストされたライブラリを作成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic JarWriter(FileSE file) throws FileNotFoundExceptionSE, IOExceptionSE
JarWriter インスタンスを作成します。file - 書き込むファイル IOExceptionSE - ファイルを開くことができない場合 FileNotFoundExceptionSE - ファイルが見つからない場合 public JarWriter(FileSE file, LaunchScript launchScript) throws FileNotFoundExceptionSE, IOExceptionSE
JarWriter インスタンスを作成します。file - 書き込むファイル launchScript - jar の前面に追加するオプションの起動スクリプト IOExceptionSE - ファイルを開くことができない場合 FileNotFoundExceptionSE - ファイルが見つからない場合 public void writeManifest(ManifestSE manifest) throws IOExceptionSE
manifest - 書くマニフェスト IOExceptionSE - マニフェスト public void writeEntries(JarFileSE jarFile) throws IOExceptionSE
jarFile - ソース jar ファイル IOExceptionSE - エントリを書き込めない場合 public void writeEntry(StringSE entryName, InputStreamSE inputStream) throws IOExceptionSE
inputStream は、エントリが書き込まれると閉じられます LoaderClassesWriter 内の writeEntry entryName - エントリの名前 inputStream - エントリのデータを読み取ることができるストリーム IOExceptionSE - 書き込みが失敗した場合 public void writeNestedLibrary(StringSE destination, Library library) throws IOExceptionSE
destination - ライブラリの宛先 library - ライブラリ IOExceptionSE - 書き込みが失敗した場合 public void writeLoaderClasses()
throws IOExceptionSELoaderClassesWriter 内の writeLoaderClasses IOExceptionSE - クラスを作成できない場合 public void writeLoaderClasses(StringSE loaderJarResourceName) throws IOExceptionSE
LoaderClassesWriter 内の writeLoaderClasses loaderJarResourceName - 書き込むローダークラスを含むリソースの名前 IOExceptionSE - クラスを作成できない場合 public void close()
throws IOExceptionSEAutoCloseableSE 内の closeSE IOExceptionSE - ファイルを閉じることができない場合 Copyright © 2019 Pivotal Software, Inc.. All rights reserved.