Class FileUtils
java.lang.Object
org.eclipse.collections.codegenerator.tools.FileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateDirectory(File path) getAllTemplateFilesFromClasspath(String templateDirectory, List<URL> classPathURLs) private static booleanisTemplateFile(String filePath) private static voidprocessJar(JarInputStream stream, List<URL> files, String templateDirectory) static Stringprivate static voidprivate static voidrecurseURL(URL url, List<URL> files, String templateDirectory) static voidwriteToFile(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:
URISyntaxExceptionIOException
-
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
-