Package | Description |
---|---|
org.apache.tika.config |
Tika configuration tools.
|
org.apache.tika.mime |
Media type information.
|
Constructor and Description |
---|
TikaConfig(ClassLoader loader)
Creates a Tika configuration from the built-in media type rules
and all the
Parser implementations available through the
service provider mechanism in the given
class loader. |
Modifier and Type | Method and Description |
---|---|
protected void |
MimeTypesReader.handleGlobError(MimeType type,
String pattern,
MimeTypeException ex,
String qName,
Attributes attributes) |
protected void |
MimeTypesReader.handleMimeError(String input,
MimeTypeException ex,
String qName,
Attributes attributes) |
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.
|
static MimeTypes |
MimeTypesFactory.create(Document document)
Creates and returns a MimeTypes instance from the specified document.
|
static MimeTypes |
MimeTypesFactory.create(InputStream... inputStreams)
Creates and returns a MimeTypes instance from the specified input stream.
|
static MimeTypes |
MimeTypesFactory.create(InputStream 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... urls)
Creates and returns a MimeTypes instance from the resource
at the location specified by the URL.
|
static MimeTypes |
MimeTypesFactory.create(URL url) |
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.getRegisteredMimeType(String name)
Returns the registered, normalised media type with the given name (or alias).
|
void |
MimeTypesReader.read(Document document) |
void |
MimeTypesReader.read(InputStream stream) |
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.