public final class DotFileUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
close(java.io.Closeable closeable) |
static void |
copyAllFiles(java.io.File sourceRootFolder,
java.io.File destinationRootFolder)
Recursively copies the contents of the source folder to the destination
folder.
|
static java.io.File |
copySingleFile(java.io.File destinationFolder,
java.lang.String newFileName,
java.io.File sourceFile) |
static java.lang.String |
read(java.io.File file) |
static java.io.File |
resolve(java.net.URL url) |
static java.io.File |
write(java.lang.String text) |
static java.io.File |
write(java.lang.String text,
java.io.File destination) |
public static java.io.File resolve(java.net.URL url)
url
- The URL to resolve (can be workspace-relative)public static java.io.File write(java.lang.String text)
text
- The string to write out to a temp filepublic static java.io.File write(java.lang.String text, java.io.File destination)
text
- The string to write out to a filedestination
- The file to write the string topublic static java.lang.String read(java.io.File file)
file
- The file to read into a stringpublic static void close(java.io.Closeable closeable)
closeable
- The closable to safely closepublic static void copyAllFiles(java.io.File sourceRootFolder, java.io.File destinationRootFolder)
sourceRootFolder
- The source root folderdestinationRootFolder
- The destination root folderpublic static java.io.File copySingleFile(java.io.File destinationFolder, java.lang.String newFileName, java.io.File sourceFile)
destinationFolder
- The destination foldernewFileName
- The name for the new filesourceFile
- The source file to be copied into a new file in the
destination folder, with the specified nameCopyright (c) 2014 itemis AG and others. All rights reserved.