public interface Layout
Modifier and Type | Method and 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.
|
default void |
file(String name,
Owner owner,
Content content)
Write a file to the content.
|
void |
file(String name,
Owner owner,
int mode,
Content content)
Write a file to the content.
|
default void directory(String name, Owner owner) throws IOException
name
- the full name of the directory to addowner
- the owner of the directoryIOException
- on IO errorvoid directory(String name, Owner owner, int mode) throws IOException
name
- the full name of the directory to addowner
- the owner of the directorymode
- the permissions for the fileIOException
- on IO errordefault void file(String name, Owner owner, Content content) throws IOException
name
- the full name of the file to addowner
- the owner of the filecontent
- the content to addIOException
- on IO errorvoid file(String name, Owner owner, int mode, Content content) throws IOException
name
- the full name of the file to addowner
- the owner of the filemode
- the permissions for the filecontent
- the content to addIOException
- on IO error