Class FileWriter
java.lang.Object
io.github.chrimle.classforge.utils.FileWriter
@API(status=INTERNAL,
since="0.6.0",
consumers="io.github.chrimle.classforge")
public class FileWriter
extends Object
Writes content to files - creating directories and files if needed.
FOR INTERNAL USE ONLY.
- Since:
- 0.1.0
- Author:
- Chrimle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidwriteToFile(String directory, String fullyQualifiedClassName, String content) Writes thecontentto a file atdirectoryand thepackage-name from thefullyQualifiedClassName.static voidwriteToFile(Path filePath, String content) Writes thecontentto a file atfilePath.
-
Constructor Details
-
FileWriter
public FileWriter()
-
-
Method Details
-
writeToFile
Writes thecontentto a file atdirectoryand thepackage-name from thefullyQualifiedClassName.- Parameters:
directory- of the file.fullyQualifiedClassName- of the class.content- of the file.- Since:
- 0.1.0
-
writeToFile
Writes thecontentto a file atfilePath. Creates the directory and file if needed.- Parameters:
filePath- of the file.content- of the file.- Since:
- 0.1.0
-