Class FileUtil
java.lang.Object
org.apache.activemq.artemis.utils.FileUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidcopyDirectory(File directorySource, File directoryTarget) static final booleandeleteDirectory(File directory) static booleanstatic booleanfindReplace(File file, String find, String replace) Search and replace strings on a filestatic voidstatic StringreadFile(InputStream inputStream)
-
Constructor Details
-
FileUtil
public FileUtil()
-
-
Method Details
-
makeExec
- Throws:
IOException
-
deleteDirectory
-
copyDirectory
- Throws:
Exception
-
findReplace
Search and replace strings on a file- Parameters:
file- file to be replacedfind- string expected to matchreplace- string to be replaced- Returns:
- true if the replacement was successful
- Throws:
Exception
-
readFile
- Throws:
Exception
-
find
- Throws:
Exception
-