Class FileWriter


  • public class FileWriter
    extends Object
    • Constructor Detail

      • FileWriter

        public FileWriter()
    • Method Detail

      • createClassFile

        public static File createClassFile​(File rootLocation,
                                           String packageName,
                                           String fileName,
                                           String extension)
                                    throws IOException,
                                           Exception
        Creates/ returns a file object
        Parameters:
        rootLocation - - Location to be written
        packageName - - package, can be '.' separated
        fileName - name of the file
        extension - type of the file, java, cpp etc
        Returns:
        the File that was created
        Throws:
        IOException
        Exception