|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use MimeType | |
---|---|
eu.medsea.mimeutil |
Uses of MimeType in eu.medsea.mimeutil |
---|
Subclasses of MimeType in eu.medsea.mimeutil | |
---|---|
class |
TextMimeType
This class can be used to represent a mime type for a text file. |
Fields in eu.medsea.mimeutil declared as MimeType | |
---|---|
static MimeType |
MimeUtil2.DIRECTORY_MIME_TYPE
Mime type used to identify a directory |
static MimeType |
MimeUtil2.UNKNOWN_MIME_TYPE
Mime type used to identify an unknown MIME type |
Methods in eu.medsea.mimeutil that return MimeType | |
---|---|
static MimeType |
MimeUtil2.getFirstMimeType(String mimeTypes)
Get the first in a comma separated list of mime types. |
static MimeType |
MimeUtil.getFirstMimeType(String mimeTypes)
Get the first in a comma separated list of mime types. |
static MimeType |
MimeUtil2.getMostSpecificMimeType(Collection mimeTypes)
Get the most specific match of the Collection of mime types passed in. |
static MimeType |
MimeUtil.getMostSpecificMimeType(Collection mimeTypes)
Get the most specific match of the Collection of mime types passed in. |
static MimeType |
MimeUtil2.getPreferedMimeType(String accept,
String canProvide)
Gives you the best match for your requirements. |
static MimeType |
MimeUtil.getPreferedMimeType(String accept,
String canProvide)
Gives you the best match for your requirements. |
Methods in eu.medsea.mimeutil with parameters of type MimeType | |
---|---|
static void |
MimeUtil2.addKnownMimeType(MimeType mimeType)
While MimeType(s) are being loaded by the MimeDetector(s) they should be added to the list of known MIME types. |
static void |
MimeUtil.addKnownMimeType(MimeType mimeType)
While MimeType(s) are being loaded by the MimeDetector(s) they should be added to the list of known MIME types. |
Collection |
MimeUtil2.getMimeTypes(byte[] data,
MimeType unknownMimeType)
Get a Collection of possible MimeType(s) that this byte array could represent according to the registered MimeDetector(s). |
static Collection |
MimeUtil.getMimeTypes(byte[] data,
MimeType unknownMimeType)
Get a Collection of possible MimeType(s) that this byte array could represent according to the registered MimeDetector(s). |
Collection |
MimeUtil2.getMimeTypes(File file,
MimeType unknownMimeType)
Get all of the matching mime types for this file object. |
static Collection |
MimeUtil.getMimeTypes(File file,
MimeType unknownMimeType)
Get all of the matching mime types for this file object. |
Collection |
MimeUtil2.getMimeTypes(InputStream in,
MimeType unknownMimeType)
Get all of the matching mime types for this InputStream object. |
static Collection |
MimeUtil.getMimeTypes(InputStream in,
MimeType unknownMimeType)
Get all of the matching mime types for this InputStream object. |
Collection |
MimeUtil2.getMimeTypes(String fileName,
MimeType unknownMimeType)
Get all of the matching mime types for this file name . |
static Collection |
MimeUtil.getMimeTypes(String fileName,
MimeType unknownMimeType)
Get all of the matching mime types for this file name . |
Collection |
MimeUtil2.getMimeTypes(URL url,
MimeType unknownMimeType)
|
static Collection |
MimeUtil.getMimeTypes(URL url,
MimeType unknownMimeType)
|
static boolean |
MimeUtil2.isMimeTypeKnown(MimeType mimeType)
Check to see if this mime type is one of the types seen during initialisation or has been added at some later stage using addKnownMimeType(...) |
static boolean |
MimeUtil.isMimeTypeKnown(MimeType mimeType)
Check to see if this mime type is one of the types seen during initialisation or has been added at some later stage using addKnownMimeType(...) |
static boolean |
MimeUtil2.isTextMimeType(MimeType mimeType)
Utility convenience method to check if a particular MimeType instance is actually a TextMimeType. |
static boolean |
MimeUtil.isTextMimeType(MimeType mimeType)
Utility convenience method to check if a particular MimeType instance is actually a TextMimeType. |
void |
TextMimeType.setMimeType(MimeType mimeType)
|
Constructors in eu.medsea.mimeutil with parameters of type MimeType | |
---|---|
MimeType(MimeType mimeType)
Construct a MimeType from another MimeType instance |
|
TextMimeType(MimeType mimeType)
|
|
TextMimeType(MimeType mimeType,
String encoding)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |