|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use MediaType | |
|---|---|
| org.apache.tika.detect | |
| org.apache.tika.mime | |
| Uses of MediaType in org.apache.tika.detect |
|---|
| Methods in org.apache.tika.detect that return MediaType | |
|---|---|
MediaType |
TypeDetector.detect(java.io.InputStream input,
Metadata metadata)
Detects the content type of an input document based on a type hint given in the input metadata. |
MediaType |
TextDetector.detect(java.io.InputStream input,
Metadata metadata)
Looks at the beginning of the document input stream to determine whether the document is text or not. |
MediaType |
NameDetector.detect(java.io.InputStream input,
Metadata metadata)
Detects the content type of an input document based on the document name given in the input metadata. |
MediaType |
MagicDetector.detect(java.io.InputStream input,
Metadata metadata)
|
MediaType |
Detector.detect(java.io.InputStream input,
Metadata metadata)
Detects the content type of the given input document. |
MediaType |
CompositeDetector.detect(java.io.InputStream input,
Metadata metadata)
|
| Constructors in org.apache.tika.detect with parameters of type MediaType | |
|---|---|
MagicDetector(MediaType type,
byte[] pattern)
Creates a detector for input documents that have the exact given byte pattern at the beginning of the document stream. |
|
MagicDetector(MediaType type,
byte[] pattern,
byte[] mask,
int offsetRangeBegin,
int offsetRangeEnd)
Creates a detector for input documents that meet the specified magic match. |
|
MagicDetector(MediaType type,
byte[] pattern,
int offset)
Creates a detector for input documents that have the exact given byte pattern at the given offset of the document stream. |
|
| Constructor parameters in org.apache.tika.detect with type arguments of type MediaType | |
|---|---|
NameDetector(java.util.Map<java.util.regex.Pattern,MediaType> patterns)
Creates a new content type detector based on the given name patterns. |
|
| Uses of MediaType in org.apache.tika.mime |
|---|
| Fields in org.apache.tika.mime declared as MediaType | |
|---|---|
static MediaType |
MediaType.APPLICATION_XML
|
static MediaType |
MediaType.OCTET_STREAM
|
static MediaType |
MediaType.TEXT_PLAIN
|
| Methods in org.apache.tika.mime that return MediaType | |
|---|---|
MediaType |
MimeTypes.detect(java.io.InputStream input,
Metadata metadata)
Automatically detects the MIME type of a document based on magic markers in the stream prefix and any given metadata hints. |
MediaType |
MediaType.getBaseType()
|
static MediaType |
MediaType.parse(java.lang.String string)
Parses the given string to a media type. |
MediaType |
MediaTypeRegistry.unalias(MediaType type)
|
| Methods in org.apache.tika.mime with parameters of type MediaType | |
|---|---|
void |
MediaTypeRegistry.addAlias(MediaType canonical,
MediaType alias)
|
boolean |
MediaType.isSpecializationOf(MediaType that)
|
MediaType |
MediaTypeRegistry.unalias(MediaType type)
|
| Constructors in org.apache.tika.mime with parameters of type MediaType | |
|---|---|
MediaType(MediaType type,
java.util.Map<java.lang.String,java.lang.String> parameters)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||