Class Utils
java.lang.Object
org.glassfish.jersey.message.internal.Utils
Utility class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic File
Create an empty file in the default temporary-file directory.(package private) static void
throwIllegalArgumentExceptionIfNull
(Object toCheck, String errorMessage) Throws an IllegalArgumentException with given error message if the first, toCheck, parameter isnull
.
-
Constructor Details
-
Utils
private Utils()Prevent instantiation.
-
-
Method Details
-
throwIllegalArgumentExceptionIfNull
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
Create an empty file in the default temporary-file directory.- Returns:
- An abstract pathname denoting a newly-created empty file.
- Throws:
IOException
- if a file could not be created.
-