Package | Description |
---|---|
org.apache.tika.config |
Tika configuration tools.
|
org.apache.tika.mime |
Media type information.
|
Constructor and Description |
---|
TikaConfig(java.lang.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,
java.lang.String pattern,
MimeTypeException ex,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
protected void |
MimeTypesReader.handleMimeError(java.lang.String input,
MimeTypeException ex,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
Modifier and Type | Method and Description |
---|---|
void |
Patterns.add(java.lang.String pattern,
boolean isJavaRegex,
MimeType type) |
void |
Patterns.add(java.lang.String pattern,
MimeType 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.
|
static MimeTypes |
MimeTypesFactory.create(org.w3c.dom.Document document)
Creates and returns a MimeTypes instance from the specified document.
|
static MimeTypes |
MimeTypesFactory.create(java.io.InputStream... inputStreams)
Creates and returns a MimeTypes instance from the specified input stream.
|
static MimeTypes |
MimeTypesFactory.create(java.io.InputStream stream) |
static MimeTypes |
MimeTypesFactory.create(java.lang.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(java.lang.String coreFilePath,
java.lang.String extensionFilePath)
Creates and returns a MimeTypes instance.
|
static MimeTypes |
MimeTypesFactory.create(java.lang.String coreFilePath,
java.lang.String extensionFilePath,
java.lang.ClassLoader classLoader)
Creates and returns a MimeTypes instance.
|
static MimeTypes |
MimeTypesFactory.create(java.net.URL... urls)
Creates and returns a MimeTypes instance from the resource
at the location specified by the URL.
|
static MimeTypes |
MimeTypesFactory.create(java.net.URL url) |
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.getRegisteredMimeType(java.lang.String name)
Returns the registered, normalised media type with the given name (or alias).
|
void |
MimeTypesReader.read(org.w3c.dom.Document document) |
void |
MimeTypesReader.read(java.io.InputStream stream) |