Class Utils
- java.lang.Object
-
- org.glassfish.jersey.message.internal.Utils
-
public final class Utils extends java.lang.Object
Utility class.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Utils()
Prevent instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 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.IOException
Create 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.
-
-