public interface MimeDataProvider
Lookup
for the specific MimePath
.
The implementations of this interface should be registered among the services
in the default lookup using ServiceProvider
.
Modifier and Type | Method and Description |
---|---|
Lookup |
getLookup(MimePath mimePath)
Retrieves a
Lookup for the given MimePath . |
Lookup getLookup(MimePath mimePath)
Lookup
for the given MimePath
.
The Lookup
returned by this method should hold a reference
to the MimePath
it was created for.
The implementors should consider caching of the Lookup
instances
returned by this method for performance reasons. The MimePath
object can be used as a stable key for such a cache, because it implements
its equals
and hashCode
method in the suitable way.
mimePath
- The mime path to get the Lookup
for. The mime
path passed in can't be null
, but it can be the
MimePath.EMPTY
mime path.Lookup
for the given MimePath
or
null
if there is no lookup available for this mime path.