java.lang.Object
org.glassfish.jersey.message.internal.Utils

public final class Utils extends Object
Utility class.
  • Constructor Details

    • Utils

      private Utils()
      Prevent instantiation.
  • Method Details

    • throwIllegalArgumentExceptionIfNull

      static void throwIllegalArgumentExceptionIfNull(Object toCheck, String errorMessage)
      Throws an IllegalArgumentException with given error message if the first, toCheck, parameter is null.
      Parameters:
      toCheck - an instance to check.
      errorMessage - message to set to the IllegalArgumentException thrown.
    • createTempFile

      public static File createTempFile() throws IOException
      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.