Package com.helger.xml.util.mime
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMimeTypeInfo.ExtensionWithSourcestatic classMimeTypeInfo.MimeTypeWithSource
-
Constructor Summary
Constructors Constructor Description MimeTypeInfo(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsExtension(String sExtension)booleancontainsMimeType(com.helger.commons.mime.IMimeType aMimeType)booleancontainsMimeType(String sMimeType)booleanequals(Object o)com.helger.commons.collection.impl.ICommonsOrderedSet<String>getAllExtensions()com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.ExtensionWithSource>getAllExtensionsWithSource()com.helger.commons.collection.impl.ICommonsOrderedSet<String>getAllGlobs()com.helger.commons.collection.impl.ICommonsSet<com.helger.commons.mime.IMimeType>getAllMimeTypes()com.helger.commons.collection.impl.ICommonsSet<String>getAllMimeTypeStrings()com.helger.commons.collection.impl.ICommonsSet<MimeTypeInfo.MimeTypeWithSource>getAllMimeTypesWithSource()com.helger.commons.collection.impl.ICommonsOrderedSet<String>getAllParentTypes()StringgetComment()StringgetPrimaryExtension()MimeTypeInfo.ExtensionWithSourcegetPrimaryExtensionWithSource()StringgetPrimaryGlob()com.helger.commons.mime.IMimeTypegetPrimaryMimeType()StringgetPrimaryMimeTypeString()MimeTypeInfo.MimeTypeWithSourcegetPrimaryMimeTypeWithSource()StringgetSource()booleanhasAnyExtension()booleanhasAnyGlob()booleanhasAnyParentType()booleanhasComment()inthashCode()booleanhasSource()StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
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)
-
getPrimaryMimeTypeWithSource
@Nonnull public MimeTypeInfo.MimeTypeWithSource getPrimaryMimeTypeWithSource()
-
getPrimaryMimeType
@Nonnull public com.helger.commons.mime.IMimeType getPrimaryMimeType()
-
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()
-
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()
-
hasAnyExtension
public boolean hasAnyExtension()
-
hasSource
public boolean hasSource()
-
-