public interface Layout
Interface that can be used to write a file/directory layout.
从以下版本开始:
2.3.0
作者:
Phillip Webb, Scott Frederick
  • 方法概要

    修饰符和类型
    方法
    说明
    default void
    directory(String name, Owner owner)
    Add a directory to the content.
    void
    directory(String name, Owner owner, int mode)
    Add a directory to the content.
    void
    file(String name, Owner owner, int mode, Content content)
    Write a file to the content.
    default void
    file(String name, Owner owner, Content content)
    Write a file to the content.
  • 方法详细资料

    • directory

      default void directory(String name, Owner owner) throws IOException
      Add a directory to the content.
      参数:
      name - the full name of the directory to add
      owner - the owner of the directory
      抛出:
      IOException - on IO error
    • directory

      void directory(String name, Owner owner, int mode) throws IOException
      Add a directory to the content.
      参数:
      name - the full name of the directory to add
      owner - the owner of the directory
      mode - the permissions for the file
      抛出:
      IOException - on IO error
    • file

      default void file(String name, Owner owner, Content content) throws IOException
      Write a file to the content.
      参数:
      name - the full name of the file to add
      owner - the owner of the file
      content - the content to add
      抛出:
      IOException - on IO error
    • file

      void file(String name, Owner owner, int mode, Content content) throws IOException
      Write a file to the content.
      参数:
      name - the full name of the file to add
      owner - the owner of the file
      mode - the permissions for the file
      content - the content to add
      抛出:
      IOException - on IO error