Enum EMimeContentType

    • Method Detail

      • values

        public static EMimeContentType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EMimeContentType c : EMimeContentType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EMimeContentType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getID

        @Nonnull
        @Nonempty
        public String getID()
        Description copied from interface: IHasID
        Get the unique ID of this object. If the type is String than the returned value must match an XML NMToken expression (so e.g. no ':' in the ID)!
        Specified by:
        getID in interface IHasID<String>
        Returns:
        The lower case text representation of this MIME content type.
      • buildMimeType

        @Nonnull
        public MimeType buildMimeType​(@Nonnull @Nonempty
                                      String sContentSubType)
        Build a new MimeType based on this MIME content type and the provided sub type.
        Parameters:
        sContentSubType - The content sub type to append. May neither be null nor empty.
        Returns:
        Never null.
      • isTypeOf

        public boolean isTypeOf​(@Nullable
                                String sMimeType)
        Check if the passed MIME type has the same content type as this
        Parameters:
        sMimeType - The MIME type string to be checked. May be null.
        Returns:
        true if the passed MIME type has this content type, false otherwise