Uses of Class
org.apache.tika.mime.MediaType

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(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(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(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(InputStream input, Metadata metadata)
           
 MediaType Detector.detect(InputStream input, Metadata metadata)
          Detects the content type of the given input document.
 MediaType CompositeDetector.detect(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(Map<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(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(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, Map<String,String> parameters)
           
 



Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.