@Immutable public final class NullMimeTypeDetector extends Object implements MimeTypeDetector
MimeTypeDetector
which doesn't detect mime-types.Modifier and Type | Field and Description |
---|---|
static MimeTypeDetector |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
String |
mimeTypeOf(String name,
Binary binaryValue)
Returns the MIME-type of a binary value, using its supplied content and/or its supplied name, depending upon the
implementation.
|
public static final MimeTypeDetector INSTANCE
public String mimeTypeOf(String name, Binary binaryValue)
MimeTypeDetector
null
may be returned,
where the former will prevent earlier registered MIME-type detectors from being consulted.mimeTypeOf
in interface MimeTypeDetector
name
- The name of the data source; may be null
.binaryValue
- The value which contains the raw data for which the mime type should be returned; may be
null
.null
if the MIME-type could not be determined.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.