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 long
static File
static File
createTempDir
(String suffix) static File
createTempFile
(byte[] pattern, int repeat) static File
createTempFile
(String contents) static void
deleteFile
(File file) static void
static boolean
static byte[]
static void
readProps
(File file, Properties props) static String
readString
(File file) static void
writeBytes
(File file, byte[] pattern, int repeat) static void
writeProps
(File file, Properties props) static void
writeString
(File file, String content) static void
writeString
(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
-