Class MimeTypeInfo

java.lang.Object
com.helger.xml.util.mime.MimeTypeInfo

@Immutable public final class MimeTypeInfo extends Object
Represents a single MIME type with information relevant for us.
Author:
Philip Helger
  • Constructor Details

  • Method Details

    • getAllMimeTypesWithSource

      @Nonnull @Nonempty @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsSet<MimeTypeInfo.MimeTypeWithSource> getAllMimeTypesWithSource()
    • getAllMimeTypes

      @Nonnull @Nonempty @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsSet<com.helger.commons.mime.IMimeType> getAllMimeTypes()
    • getAllMimeTypeStrings

      @Nonnull @Nonempty @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsSet<String> getAllMimeTypeStrings()
    • containsMimeType

      public boolean containsMimeType(@Nullable com.helger.commons.mime.IMimeType aMimeType)
    • containsMimeType

      public boolean containsMimeType(@Nullable String sMimeType)
    • getPrimaryMimeTypeWithSource

      @Nonnull public MimeTypeInfo.MimeTypeWithSource getPrimaryMimeTypeWithSource()
    • getPrimaryMimeType

      @Nonnull public com.helger.commons.mime.IMimeType getPrimaryMimeType()
    • getPrimaryMimeTypeString

      @Nonnull public String getPrimaryMimeTypeString()
    • getComment

      @Nullable public String getComment()
    • hasComment

      public boolean hasComment()
    • getAllParentTypes

      @Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<String> getAllParentTypes()
    • hasAnyParentType

      public boolean hasAnyParentType()
    • getAllGlobs

      @Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<String> getAllGlobs()
    • getPrimaryGlob

      @Nullable public String getPrimaryGlob()
    • hasAnyGlob

      public boolean hasAnyGlob()
    • getAllExtensionsWithSource

      @Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.ExtensionWithSource> getAllExtensionsWithSource()
    • getAllExtensions

      @Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<String> getAllExtensions()
    • getPrimaryExtensionWithSource

      @Nullable public MimeTypeInfo.ExtensionWithSource getPrimaryExtensionWithSource()
    • getPrimaryExtension

      @Nullable public String getPrimaryExtension()
    • hasAnyExtension

      public boolean hasAnyExtension()
    • containsExtension

      public boolean containsExtension(@Nullable String sExtension)
    • getSource

      @Nullable public String getSource()
    • hasSource

      public boolean hasSource()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object