public interface Layout
Interface that can be used to write a file/directory layout.
Since:
2.3.0
Author:
Phillip Webb, Scott Frederick
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • directory

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

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

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

      void file(String name, Owner owner, int mode, Content content) throws IOException
      Write a file to the content.
      Parameters:
      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
      Throws:
      IOException - on IO error