public interface ContentDetector
Content type detector that can be used to determine the media type of the content when content metadata attributes are not specific enough.
Modifier and Type | Method and Description |
---|---|
com.google.common.net.MediaType |
detect(ContentMetadata contentMetadata)
Detects the content media type based on the content metadata.
|
com.google.common.net.MediaType detect(ContentMetadata contentMetadata)
Detects the content media type based on the content metadata. If the content media type cannot be confidently determined, MediaType.OCTET_STREAM
is returned.
contentMetadata
- the content metadataMediaType.OCTET_STREAM
if no media type can be safely determinedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.