public final class Utils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
Utils()
Prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static java.io.File |
createTempFile()
Create an empty file in the default temporary-file directory.
|
(package private) static void |
throwIllegalArgumentExceptionIfNull(java.lang.Object toCheck,
java.lang.String errorMessage)
Throws an IllegalArgumentException with given error message if the first, toCheck,
parameter is
null . |
static void throwIllegalArgumentExceptionIfNull(java.lang.Object toCheck, java.lang.String errorMessage)
null
.toCheck
- an instance to check.errorMessage
- message to set to the IllegalArgumentException thrown.public static java.io.File createTempFile() throws java.io.IOException
java.io.IOException
- if a file could not be created.