Package | Description |
---|---|
org.apache.tika.mime |
Media type information.
|
Modifier and Type | Field and Description |
---|---|
private MimeType |
MimeTypes.rootMimeType
Root type, application/octet-stream.
|
private MimeType |
MimeTypes.textMimeType
Text type, text/plain.
|
private MimeType |
MimeType.RootXML.type |
private MimeType |
Magic.type |
protected MimeType |
MimeTypesReader.type
Current type
|
private MimeType |
MimeTypes.xmlMimeType |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,MimeType> |
Patterns.extensions
Index of extension patterns of the form "*extension".
|
private java.util.SortedMap<java.lang.String,MimeType> |
Patterns.globs
Index of generic glob patterns, sorted by length.
|
private java.util.Map<java.lang.String,MimeType> |
Patterns.names
Index of exact name patterns.
|
private java.util.List<MimeType> |
MimeTypes.rootMimeTypeL |
private java.util.Map<MediaType,MimeType> |
MimeTypes.types
All the registered MimeTypes indexed on their canonical names
|
private java.util.List<MimeType> |
MimeTypes.xmls
Sorted list of all registered rootXML
|
Modifier and Type | Method and Description |
---|---|
MimeType |
MimeTypes.forName(java.lang.String name)
Returns the registered media type with the given name (or alias).
|
MimeType |
MimeTypes.getMimeType(java.io.File file)
Deprecated.
Use
Tika.detect(File) instead |
MimeType |
MimeTypes.getMimeType(java.lang.String name)
Deprecated.
Use
Tika.detect(String) instead |
MimeType |
MimeTypes.getRegisteredMimeType(java.lang.String name)
Returns the registered, normalised media type with the given name (or alias).
|
(package private) MimeType |
MimeType.RootXML.getType() |
(package private) MimeType |
Magic.getType() |
MimeType |
Patterns.matches(java.lang.String name)
Find the MimeType corresponding to a resource name.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<MimeType> |
MimeTypes.applyHint(java.util.List<MimeType> possibleTypes,
MimeType hint)
Use the MimeType hint to try to clarify or specialise the current
possible types list.
|
(package private) java.util.List<MimeType> |
MimeTypes.getMimeType(byte[] data)
Returns the MIME type that best matches the given first few bytes
of a document stream.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
MimeTypes.add(MimeType type)
Add the specified mime-type in the repository.
|
void |
Patterns.add(java.lang.String pattern,
boolean isJavaRegex,
MimeType type) |
void |
Patterns.add(java.lang.String pattern,
MimeType type) |
(package private) void |
MimeTypes.addAlias(MimeType type,
MediaType alias)
Adds an alias for the given media type.
|
private void |
Patterns.addExtension(java.lang.String extension,
MimeType type) |
private void |
Patterns.addGlob(java.lang.String glob,
MimeType type) |
private void |
Patterns.addName(java.lang.String name,
MimeType type) |
void |
MimeTypes.addPattern(MimeType type,
java.lang.String pattern)
Adds a file name pattern for the given media type.
|
void |
MimeTypes.addPattern(MimeType type,
java.lang.String pattern,
boolean isRegex)
Adds a file name pattern for the given media type.
|
private java.util.List<MimeType> |
MimeTypes.applyHint(java.util.List<MimeType> possibleTypes,
MimeType hint)
Use the MimeType hint to try to clarify or specialise the current
possible types list.
|
private MediaType |
ProbabilisticMimeDetectionSelector.applyProbilities(java.util.List<MimeType> possibleTypes,
MimeType extMimeType,
MimeType metadataMimeType) |
int |
MimeType.compareTo(MimeType mime) |
protected void |
MimeTypesReader.handleGlobError(MimeType type,
java.lang.String pattern,
MimeTypeException ex,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
void |
MimeTypes.setSuperType(MimeType type,
MediaType parent) |
Modifier and Type | Method and Description |
---|---|
private java.util.List<MimeType> |
MimeTypes.applyHint(java.util.List<MimeType> possibleTypes,
MimeType hint)
Use the MimeType hint to try to clarify or specialise the current
possible types list.
|
private MediaType |
ProbabilisticMimeDetectionSelector.applyProbilities(java.util.List<MimeType> possibleTypes,
MimeType extMimeType,
MimeType metadataMimeType) |
Constructor and Description |
---|
Magic(MimeType type,
int priority,
Clause clause) |
RootXML(MimeType type,
java.lang.String namespaceURI,
java.lang.String localName) |