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 MediaType
CommonMark variant, see CommonMark.org.static final MediaType
static 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, wait
Methods inherited from interface dev.enola.common.io.mediatype.MediaTypeProvider
detect
Methods 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:MediaTypeProvider
Maps 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:
extensionsToTypes
in interfaceMediaTypeProvider
-
knownTypesWithAlternatives
Description copied from interface:MediaTypeProvider
Maps "canonical" (primary) Media Types to a set of its "also known as alternatives".- Specified by:
knownTypesWithAlternatives
in interfaceMediaTypeProvider
-