Package dev.enola.common.io.mediatype
Class StandardMediaTypes
java.lang.Object
dev.enola.common.io.mediatype.StandardMediaTypes
- All Implemented Interfaces:
MediaTypeProvider,ResourceMediaTypeDetector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMaps the URI path "extension" (WITH the dot; or not, filenames such as "README" are also permitted!) to its "canonical" Media Types.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.common.io.mediatype.MediaTypeProvider
detect, knownTypesWithAlternativesMethods inherited from interface dev.enola.common.io.mediatype.ResourceMediaTypeDetector
detect
-
Constructor Details
-
StandardMediaTypes
public StandardMediaTypes()
-
-
Method Details
-
extensionsToTypes
Description copied from interface:MediaTypeProviderMaps the URI path "extension" (WITH the dot; or not, filenames such as "README" are also permitted!) to its "canonical" Media Types. This should only be used for "informational" listing kind of output. To actually determine a MediaType, please useMediaTypeProvider.detect(String, ByteSource, MediaType)instead.- Specified by:
extensionsToTypesin interfaceMediaTypeProvider
-