Package com.helger.xml.util.mime
Class MimeTypeInfo
java.lang.Object
com.helger.xml.util.mime.MimeTypeInfo
Represents a single MIME type with information relevant for us.
- Author:
- Philip Helger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionMimeTypeInfo(com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.MimeTypeWithSource> aMimeTypes, String sComment, com.helger.commons.collection.impl.ICommonsOrderedSet<String> aParentTypes, com.helger.commons.collection.impl.ICommonsOrderedSet<String> aGlobs, com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.ExtensionWithSource> aExtensions, String sSource) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsExtension(String sExtension) booleancontainsMimeType(com.helger.commons.mime.IMimeType aMimeType) booleancontainsMimeType(String sMimeType) booleancom.helger.commons.collection.impl.ICommonsOrderedSet<String>com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.ExtensionWithSource>com.helger.commons.collection.impl.ICommonsOrderedSet<String>com.helger.commons.collection.impl.ICommonsSet<com.helger.commons.mime.IMimeType>com.helger.commons.collection.impl.ICommonsSet<String>com.helger.commons.collection.impl.ICommonsSet<MimeTypeInfo.MimeTypeWithSource>com.helger.commons.collection.impl.ICommonsOrderedSet<String>com.helger.commons.mime.IMimeTypebooleanbooleanbooleanbooleaninthashCode()booleantoString()
-
Constructor Details
-
MimeTypeInfo
public MimeTypeInfo(@Nonnull @Nonempty com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.MimeTypeWithSource> aMimeTypes, @Nullable String sComment, @Nonnull com.helger.commons.collection.impl.ICommonsOrderedSet<String> aParentTypes, @Nonnull com.helger.commons.collection.impl.ICommonsOrderedSet<String> aGlobs, @Nonnull com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.ExtensionWithSource> aExtensions, @Nullable String sSource)
-
-
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
-
containsMimeType
-
containsMimeType
-
getPrimaryMimeTypeWithSource
-
getPrimaryMimeType
-
getPrimaryMimeTypeString
-
getComment
-
hasComment
public boolean hasComment() -
getAllParentTypes
-
hasAnyParentType
public boolean hasAnyParentType() -
getAllGlobs
-
getPrimaryGlob
-
hasAnyGlob
public boolean hasAnyGlob() -
getAllExtensionsWithSource
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.ExtensionWithSource> getAllExtensionsWithSource() -
getAllExtensions
-
getPrimaryExtensionWithSource
-
getPrimaryExtension
-
hasAnyExtension
public boolean hasAnyExtension() -
containsExtension
-
getSource
-
hasSource
public boolean hasSource() -
equals
-
hashCode
public int hashCode() -
toString
-