@Beta public final class MediaTypes extends Object implements MediaTypeService
Modifier and Type | Method and Description |
---|---|
void |
addProvider(MediaTypeProvider provider) |
Map<String,com.google.common.net.MediaType> |
asMap() |
com.google.common.net.MediaType |
fromExt(String ext) |
com.google.common.net.MediaType |
fromFile(String fileName) |
static MediaTypes |
instance() |
Iterator<MediaTypeProvider> |
iterator() |
void |
removeProvider(MediaTypeProvider provider) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public com.google.common.net.MediaType fromExt(String ext)
fromExt
in interface MediaTypeService
public com.google.common.net.MediaType fromFile(String fileName)
fromFile
in interface MediaTypeService
public Map<String,com.google.common.net.MediaType> asMap()
asMap
in interface MediaTypeService
public void addProvider(MediaTypeProvider provider)
public void removeProvider(MediaTypeProvider provider)
public Iterator<MediaTypeProvider> iterator()
iterator
in interface Iterable<MediaTypeProvider>
public static MediaTypes instance()