Class Utils
- java.lang.Object
-
- org.glassfish.jersey.message.internal.Utils
-
public final class Utils extends java.lang.ObjectUtility class.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateUtils()Prevent instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.FilecreateTempFile()Create an empty file in the default temporary-file directory.(package private) static voidthrowIllegalArgumentExceptionIfNull(java.lang.Object toCheck, java.lang.String errorMessage)Throws an IllegalArgumentException with given error message if the first, toCheck, parameter isnull.
-
-
-
Method Detail
-
throwIllegalArgumentExceptionIfNull
static void throwIllegalArgumentExceptionIfNull(java.lang.Object toCheck, java.lang.String errorMessage)Throws an IllegalArgumentException with given error message if the first, toCheck, parameter isnull.- Parameters:
toCheck- an instance to check.errorMessage- message to set to the IllegalArgumentException thrown.
-
createTempFile
public static java.io.File createTempFile() throws java.io.IOExceptionCreate an empty file in the default temporary-file directory.- Returns:
- An abstract pathname denoting a newly-created empty file.
- Throws:
java.io.IOException- if a file could not be created.
-
-