インターフェース Layout


public interface Layout
ファイル / ディレクトリレイアウトを書き込むために使用できるインターフェース。
導入:
2.3.0
作成者:
Phillip Webb, Scott Frederick
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    default void
    directory(StringSE name, Owner owner)
    コンテンツにディレクトリを追加します。
    void
    directory(StringSE name, Owner owner, int mode)
    コンテンツにディレクトリを追加します。
    void
    file(StringSE name, Owner owner, int mode, Content content)
    コンテンツにファイルを書き込みます。
    default void
    file(StringSE name, Owner owner, Content content)
    コンテンツにファイルを書き込みます。
  • メソッドの詳細

    • directory

      default void directory(StringSE name, Owner owner) throws IOExceptionSE
      コンテンツにディレクトリを追加します。
      パラメーター:
      name - 追加するディレクトリのフルネーム
      owner - ディレクトリの所有者
      例外:
      IOExceptionSE - IO エラー時
    • directory

      void directory(StringSE name, Owner owner, int mode) throws IOExceptionSE
      コンテンツにディレクトリを追加します。
      パラメーター:
      name - 追加するディレクトリのフルネーム
      owner - ディレクトリの所有者
      mode - ファイルの権限
      例外:
      IOExceptionSE - IO エラー時
    • file

      default void file(StringSE name, Owner owner, Content content) throws IOExceptionSE
      コンテンツにファイルを書き込みます。
      パラメーター:
      name - 追加するファイルのフルネーム
      owner - ファイルの所有者
      content - 追加するコンテンツ
      例外:
      IOExceptionSE - IO エラー時
    • file

      void file(StringSE name, Owner owner, int mode, Content content) throws IOExceptionSE
      コンテンツにファイルを書き込みます。
      パラメーター:
      name - 追加するファイルのフルネーム
      owner - ファイルの所有者
      mode - ファイルの権限
      content - 追加するコンテンツ
      例外:
      IOExceptionSE - IO エラー時