Class TestFileUtils
java.lang.Object
org.eclipse.aether.internal.test.util.TestFileUtils
Provides utility methods to read and write (temporary) files.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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) private static boolean
private static void
delete
(File file, Collection<File> undeletables) 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)
-
Field Details
-
TMP
-
-
Constructor Details
-
TestFileUtils
private TestFileUtils()
-
-
Method Details
-
deleteTempFiles
- Throws:
IOException
-
deleteFile
- Throws:
IOException
-
delete
-
del
-
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
-
readProps
- Throws:
IOException
-
writeProps
- Throws:
IOException
-