Class FileWriter

java.lang.Object
io.github.chrimle.classforge.internal.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 Details

    • FileWriter

      public FileWriter()
  • Method Details

    • writeToFile

      public static void writeToFile(String directory, String fullyQualifiedClassName, String content)
      Writes the content to a file at directory and the package-name from the fullyQualifiedClassName.
      Parameters:
      directory - of the file.
      fullyQualifiedClassName - of the class.
      content - of the file.
      Since:
      0.1.0
    • writeToFile

      public static void writeToFile(Path filePath, String content)
      Writes the content to a file at filePath. Creates the directory and file if needed.
      Parameters:
      filePath - of the file.
      content - of the file.
      Since:
      0.1.0