public interface MIMETypeAware
Modifier and Type | Method and Description |
---|---|
String |
getDefaultMIMEType()
Returns the default MIME Type for the OWLOntologyFormat that this class is a factory for.
|
default List<String> |
getMIMETypes()
Returns a sorted list of MIME types for the OWLOntologyFormat that this class is a factory
for.
|
default boolean |
handlesMimeType(String mimeType)
Determines whether either
getDefaultMIMEType() equals the given mime type or
getMIMETypes() contains the given mime type. |
static String |
stripWeight(String mime)
Utility to reduce a mime format like "text/plain; q=0.1" to "text/plain"
|
@Nullable String getDefaultMIMEType()
@Nonnull default List<String> getMIMETypes()
default boolean handlesMimeType(String mimeType)
getDefaultMIMEType()
equals the given mime type or
getMIMETypes()
contains the given mime type.mimeType
- The MIME type to match against.Copyright © 2020 The University of Manchester. All rights reserved.