write
Writes the contents of the given stream to the file at the given path.
If the given path points to a file that already exists, it will be truncated before writing.
If the given path points to a file that does not yet exist, it will be created.
Return
Path to the written file.
Parameters
Relative path at which the file should be written.
If this path includes subdirectories, those subdirectories will be created if they do not already exist.
Input stream over the data that will be written to the target file.
Opens an output stream to the given path and passes it to the consumer, which can write arbitrary data to the file, then closes the stream.
If the given path points to a file that already exists, it will be truncated before writing.
If the given path points to a file that does not yet exist, it will be created.
Return
Path to the written file.
Parameters
Relative path at which the file should be written.
If this path includes subdirectories, those subdirectories will be created if they do not already exist.
Consumer of the created output stream which will write data to the target file via the stream.
Writes the contents of the given reader to the file at the given path.
If the given path points to a file that already exists, it will be truncated before writing.
If the given path points to a file that does not yet exist, it will be created.
Return
Path to the written file.
Parameters
Relative path at which the file should be written.
If this path includes subdirectories, those subdirectories will be created if they do not already exist.
Reader over the data that will be written to the target file.
Writes the given string to the file at the given path.
If the given path points to a file that already exists, it will be truncated before writing.
If the given path points to a file that does not yet exist, it will be created.
Return
Path to the written file.
Parameters
Relative path at which the file should be written.
If this path includes subdirectories, those subdirectories will be created if they do not already exist.
String that will be written to the target file.
Writes the given JsonNode to the file at the given path.
If the given path points to a file that already exists, it will be truncated before writing.
If the given path points to a file that does not yet exist, it will be created.
Return
Path to the written file.
Parameters
Relative path at which the file should be written.
If this path includes subdirectories, those subdirectories will be created if they do not already exist.
Json data that will be written to the target file.