Class TestFileUtils
java.lang.Object
org.eclipse.aether.internal.test.util.TestFileUtils
Provides utility methods to read and write (temporary) files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic longstatic Filestatic FilecreateTempDir(String suffix) static FilecreateTempFile(byte[] pattern, int repeat) static FilecreateTempFile(String contents) static voiddeleteFile(File file) static voidstatic booleanstatic byte[]static voidreadProps(File file, Properties props) static StringreadString(File file) static voidwriteBytes(File file, byte[] pattern, int repeat) static voidwriteProps(File file, Properties props) static voidwriteString(File file, String content) static voidwriteString(File file, String content, long timestamp)
-
Method Details
-
deleteTempFiles
- Throws:
IOException
-
deleteFile
- Throws:
IOException
-
mkdirs
-
createTempFile
- Throws:
IOException
-
createTempFile
- Throws:
IOException
-
createTempDir
- Throws:
IOException
-
createTempDir
- Throws:
IOException
-
copyFile
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
writeBytes
- Throws:
IOException
-
readString
- Throws:
IOException
-
writeString
- Throws:
IOException
-
writeString
- Throws:
IOException
-
readProps
- Throws:
IOException
-
writeProps
- Throws:
IOException
-