Class FileUtils
java.lang.Object
org.eclipse.collections.codegenerator.tools.FileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
createDirectory
(File path) getAllTemplateFilesFromClasspath
(String templateDirectory, List<URL> classPathURLs) private static boolean
isTemplateFile
(String filePath) private static void
processJar
(JarInputStream stream, List<URL> files, String templateDirectory) static String
private static void
private static void
recurseURL
(URL url, List<URL> files, String templateDirectory) static void
writeToFile
(String data, File outputFile, boolean outputFileMustExist)
-
Constructor Details
-
FileUtils
private FileUtils()
-
-
Method Details
-
writeToFile
-
getAllTemplateFilesFromClasspath
-
recurseURL
private static void recurseURL(URL url, List<URL> files, String templateDirectory) throws URISyntaxException, IOException - Throws:
URISyntaxException
IOException
-
recurse
private static void recurse(File rootDirectory, File file, List<URL> files, String templateDirectory) throws IOException - Throws:
IOException
-
processJar
private static void processJar(JarInputStream stream, List<URL> files, String templateDirectory) throws IOException - Throws:
IOException
-
createDirectory
-
isTemplateFile
-
readFile
-