void |
MimeTypes.addPattern(MimeType type,
String pattern) |
Adds a file name pattern for the given media type.
|
void |
MimeTypes.addPattern(MimeType type,
String pattern,
boolean isRegex) |
Adds a file name pattern for the given media type.
|
static MimeTypes |
MimeTypesFactory.create(InputStream stream) |
|
static MimeTypes |
MimeTypesFactory.create(InputStream... inputStreams) |
Creates and returns a MimeTypes instance from the specified input stream.
|
static MimeTypes |
MimeTypesFactory.create(String filePath) |
Creates and returns a MimeTypes instance from the specified file path,
as interpreted by the class loader in getResource().
|
static MimeTypes |
MimeTypesFactory.create(String coreFilePath,
String extensionFilePath) |
Creates and returns a MimeTypes instance.
|
static MimeTypes |
MimeTypesFactory.create(String coreFilePath,
String extensionFilePath,
ClassLoader classLoader) |
Creates and returns a MimeTypes instance.
|
static MimeTypes |
MimeTypesFactory.create(URL url) |
|
static MimeTypes |
MimeTypesFactory.create(URL... urls) |
Creates and returns a MimeTypes instance from the resource
at the location specified by the URL.
|
static MimeTypes |
MimeTypesFactory.create(Document document) |
Creates and returns a MimeTypes instance from the specified document.
|
MimeType |
MimeTypes.forName(String name) |
Returns the registered media type with the given name (or alias).
|
MimeType |
MimeTypes.getMimeType(File file) |
Deprecated.
|
MimeType |
MimeTypes.getRegisteredMimeType(String name) |
Returns the registered, normalised media type with the given name (or alias).
|
void |
MimeTypesReader.read(InputStream stream) |
|
void |
MimeTypesReader.read(Document document) |
|