@Immutable public final class MimeTypeInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MimeTypeInfo.ExtensionWithSource |
static class |
MimeTypeInfo.MimeTypeWithSource |
| Constructor and Description |
|---|
MimeTypeInfo(Set<MimeTypeInfo.MimeTypeWithSource> aMimeTypes,
String sComment,
Set<String> aParentTypes,
Set<String> aGlobs,
Set<MimeTypeInfo.ExtensionWithSource> aExtensions,
String sSource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsExtension(String sExtension) |
boolean |
containsMimeType(IMimeType aMimeType) |
boolean |
containsMimeType(String sMimeType) |
boolean |
equals(Object o) |
Set<String> |
getAllExtensions() |
Set<MimeTypeInfo.ExtensionWithSource> |
getAllExtensionsWithSource() |
Set<String> |
getAllGlobs() |
Set<IMimeType> |
getAllMimeTypes() |
Set<String> |
getAllMimeTypeStrings() |
Set<MimeTypeInfo.MimeTypeWithSource> |
getAllMimeTypesWithSource() |
Set<String> |
getAllParentTypes() |
String |
getComment() |
String |
getPrimaryExtension() |
MimeTypeInfo.ExtensionWithSource |
getPrimaryExtensionWithSource() |
String |
getPrimaryGlob() |
IMimeType |
getPrimaryMimeType() |
String |
getPrimaryMimeTypeString() |
MimeTypeInfo.MimeTypeWithSource |
getPrimaryMimeTypeWithSource() |
String |
getSource() |
boolean |
hasAnyExtension() |
boolean |
hasAnyGlob() |
boolean |
hasAnyParentType() |
boolean |
hasComment() |
int |
hashCode() |
boolean |
hasSource() |
String |
toString() |
@Nonnull @Nonempty @ReturnsMutableCopy public Set<MimeTypeInfo.MimeTypeWithSource> getAllMimeTypesWithSource()
@Nonnull @Nonempty @ReturnsMutableCopy public Set<IMimeType> getAllMimeTypes()
@Nonnull @Nonempty @ReturnsMutableCopy public Set<String> getAllMimeTypeStrings()
@Nonnull public MimeTypeInfo.MimeTypeWithSource getPrimaryMimeTypeWithSource()
public boolean hasComment()
@Nonnull @ReturnsMutableCopy public Set<String> getAllParentTypes()
public boolean hasAnyParentType()
@Nonnull @ReturnsMutableCopy public Set<String> getAllGlobs()
public boolean hasAnyGlob()
@Nonnull @ReturnsMutableCopy public Set<MimeTypeInfo.ExtensionWithSource> getAllExtensionsWithSource()
@Nonnull @ReturnsMutableCopy public Set<String> getAllExtensions()
@Nullable public MimeTypeInfo.ExtensionWithSource getPrimaryExtensionWithSource()
public boolean hasAnyExtension()
public boolean hasSource()
Copyright © 2014–2015 Philip Helger. All rights reserved.