Package dev.enola.common.io.mediatype
Class MarkdownMediaTypes
java.lang.Object
dev.enola.common.io.mediatype.MarkdownMediaTypes
- All Implemented Interfaces:
MediaTypeProvider,ResourceMediaTypeDetector
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MediaTypeCommonMark variant, see CommonMark.org.static final MediaTypestatic final MediaType -
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.Maps "canonical" (primary) Media Types to a set of its "also known as alternatives".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
detectMethods inherited from interface dev.enola.common.io.mediatype.ResourceMediaTypeDetector
detect
-
Field Details
-
MARKDOWN_UTF_8
-
COMMON_MARKDOWN_UTF_8
CommonMark variant, see CommonMark.org. -
GFM_MARKDOWN_UTF_8
-
-
Constructor Details
-
MarkdownMediaTypes
public MarkdownMediaTypes()
-
-
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
-
knownTypesWithAlternatives
Description copied from interface:MediaTypeProviderMaps "canonical" (primary) Media Types to a set of its "also known as alternatives".- Specified by:
knownTypesWithAlternativesin interfaceMediaTypeProvider
-