public interface BaseDirBuilder
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.Path |
build()
Build the baseDir.
|
java.nio.file.Path |
dir(java.lang.String path)
Creates a directory at the given path within the base dir.
|
java.nio.file.Path |
file(java.lang.String path)
Returns a path for the given path within the base dir.
|
java.nio.file.Path |
file(java.lang.String path,
java.lang.String content)
Creates a file with the given string content at the given path within the base dir.
|
java.nio.file.Path file(java.lang.String path)
All parent directories will be created on demand.
path - The relative path to the pathjava.nio.file.Path file(java.lang.String path,
java.lang.String content)
All parent directories will be created on demand.
path - The relative path to the file to createcontent - The content to write to the filejava.nio.file.Path dir(java.lang.String path)
All parent directories will be created on demand.
path - The relative path to the file to createjava.nio.file.Path build()