Package | Description |
---|---|
org.apache.tika.mime |
Media type information.
|
Modifier and Type | Field and Description |
---|---|
protected MimeType |
MimeTypesReader.type
Current type
|
Modifier and Type | Method and Description |
---|---|
MimeType |
MimeTypes.forName(String name)
Returns the registered media type with the given name (or alias).
|
MimeType |
MimeTypes.getMimeType(File file)
Deprecated.
Use
Tika.detect(File) instead |
MimeType |
MimeTypes.getMimeType(String name)
Deprecated.
Use
Tika.detect(String) instead |
MimeType |
MimeTypes.getRegisteredMimeType(String name)
Returns the registered, normalised media type with the given name (or alias).
|
Modifier and Type | Method and Description |
---|---|
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.
|
int |
MimeType.compareTo(MimeType mime) |
protected void |
MimeTypesReader.handleGlobError(MimeType type,
String pattern,
MimeTypeException ex,
String qName,
Attributes attributes) |
void |
MimeTypes.setSuperType(MimeType type,
MediaType parent) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.