Uses of Class
org.apache.tika.mime.MediaType
-
Packages that use MediaType Package Description org.apache.tika.config Tika configuration tools.org.apache.tika.detect Media type detection.org.apache.tika.embedder org.apache.tika.extractor Extraction of component documents.org.apache.tika.fork Forked parser.org.apache.tika.mime Media type information.org.apache.tika.parser Tika parsers.org.apache.tika.parser.external External parser process.org.apache.tika.parser.external2 org.apache.tika.parser.multiple org.apache.tika.renderer -
-
Uses of MediaType in org.apache.tika.config
Methods in org.apache.tika.config with parameters of type MediaType Modifier and Type Method Description ParserTikaConfig. getParser(MediaType mimeType)Deprecated.Use theTikaConfig.getParser()method instead -
Uses of MediaType in org.apache.tika.detect
Methods in org.apache.tika.detect that return MediaType Modifier and Type Method Description MediaTypeCompositeDetector. detect(InputStream input, Metadata metadata)MediaTypeDetector. detect(InputStream input, Metadata metadata)Detects the content type of the given input document.MediaTypeEmptyDetector. detect(InputStream input, Metadata metadata)MediaTypeFileCommandDetector. detect(InputStream input, Metadata metadata)MediaTypeMagicDetector. detect(InputStream input, Metadata metadata)MediaTypeNameDetector. detect(InputStream input, Metadata metadata)Detects the content type of an input document based on the document name given in the input metadata.MediaTypeOverrideDetector. detect(InputStream input, Metadata metadata)Deprecated.MediaTypeTextDetector. detect(InputStream input, Metadata metadata)Looks at the beginning of the document input stream to determine whether the document is text or not.MediaTypeTrainedModelDetector. detect(InputStream input, Metadata metadata)MediaTypeTypeDetector. detect(InputStream input, Metadata metadata)Detects the content type of an input document based on a type hint given in the input metadata.MediaTypeZeroSizeFileDetector. detect(InputStream stream, Metadata metadata)MediaTypeNNTrainedModelBuilder. getType()Methods in org.apache.tika.detect with parameters of type MediaType Modifier and Type Method Description static MagicDetectorMagicDetector. parse(MediaType mediaType, String type, String offset, String value, String mask)protected voidTrainedModelDetector. registerModels(MediaType type, TrainedModel model)voidNNTrainedModelBuilder. setType(MediaType type)Constructors in org.apache.tika.detect with parameters of type MediaType Constructor Description 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, boolean isRegex, boolean isStringIgnoreCase, int offsetRangeBegin, int offsetRangeEnd)Creates a detector for input documents that meet the specified magic match.MagicDetector(MediaType type, byte[] pattern, byte[] mask, boolean isRegex, int offsetRangeBegin, int offsetRangeEnd)Creates a detector for input documents that meet the specified magic match.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 Constructor Description NameDetector(Map<Pattern,MediaType> patterns)Creates a new content type detector based on the given name patterns. -
Uses of MediaType in org.apache.tika.embedder
Methods in org.apache.tika.embedder that return types with arguments of type MediaType Modifier and Type Method Description Set<MediaType>Embedder. getSupportedEmbedTypes(ParseContext context)Returns the set of media types supported by this embedder when used with the given parse context.Set<MediaType>ExternalEmbedder. getSupportedEmbedTypes()Set<MediaType>ExternalEmbedder. getSupportedEmbedTypes(ParseContext context)Method parameters in org.apache.tika.embedder with type arguments of type MediaType Modifier and Type Method Description voidExternalEmbedder. setSupportedEmbedTypes(Set<MediaType> supportedEmbedTypes) -
Uses of MediaType in org.apache.tika.extractor
Methods in org.apache.tika.extractor with parameters of type MediaType Modifier and Type Method Description voidEmbeddedResourceHandler. handle(String filename, MediaType mediaType, InputStream stream)Called to process an embedded resource within the container. -
Uses of MediaType in org.apache.tika.fork
Methods in org.apache.tika.fork that return types with arguments of type MediaType Modifier and Type Method Description Set<MediaType>ForkParser. getSupportedTypes(ParseContext context) -
Uses of MediaType in org.apache.tika.mime
Fields in org.apache.tika.mime declared as MediaType Modifier and Type Field Description static MediaTypeMediaType. APPLICATION_XMLstatic MediaTypeMediaType. APPLICATION_ZIPstatic MediaTypeMediaType. EMPTYstatic MediaTypeMediaType. OCTET_STREAMstatic MediaTypeMediaType. TEXT_HTMLstatic MediaTypeMediaType. TEXT_PLAINMethods in org.apache.tika.mime that return MediaType Modifier and Type Method Description static MediaTypeMediaType. application(String type)static MediaTypeMediaType. audio(String type)MediaTypeMimeTypes. 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.MediaTypeProbabilisticMimeDetectionSelector. detect(InputStream input, Metadata metadata)MediaTypeMediaType. getBaseType()Returns the base form of the MediaType, excluding any parameters, such as "text/plain" for "text/plain; charset=utf-8"MediaTypeMediaTypeRegistry. getSupertype(MediaType type)Returns the supertype of the given type.MediaTypeMimeType. getType()Returns the normalized media type name.static MediaTypeMediaType. image(String type)MediaTypeMediaTypeRegistry. normalize(MediaType type)static MediaTypeMediaType. parse(String string)Parses the given string to a media type.static MediaTypeMediaType. text(String type)static MediaTypeMediaType. video(String type)Methods in org.apache.tika.mime that return types with arguments of type MediaType Modifier and Type Method Description SortedSet<MediaType>MediaTypeRegistry. getAliases(MediaType type)Returns the set of known aliases of the given canonical media type.SortedSet<MediaType>MediaTypeRegistry. getChildTypes(MediaType type)Returns the set of known children of the given canonical media typeSortedSet<MediaType>MediaTypeRegistry. getTypes()Returns the set of all known canonical media types.static Set<MediaType>MediaType. set(String... types)Convenience method that parses the given media type strings and returns an unmodifiable set that contains all the parsed types.static Set<MediaType>MediaType. set(MediaType... types)Convenience method that returns an unmodifiable set that contains all the given media types.Methods in org.apache.tika.mime with parameters of type MediaType Modifier and Type Method Description voidMediaTypeRegistry. addAlias(MediaType type, MediaType alias)voidMediaTypeRegistry. addSuperType(MediaType type, MediaType supertype)voidMediaTypeRegistry. addType(MediaType type)intMediaType. compareTo(MediaType that)SortedSet<MediaType>MediaTypeRegistry. getAliases(MediaType type)Returns the set of known aliases of the given canonical media type.SortedSet<MediaType>MediaTypeRegistry. getChildTypes(MediaType type)Returns the set of known children of the given canonical media typeMediaTypeMediaTypeRegistry. getSupertype(MediaType type)Returns the supertype of the given type.booleanMediaTypeRegistry. isInstanceOf(String a, MediaType b)Parses and normalises the given media type string and checks whether the result equals the given base type or is a specialization of it.booleanMediaTypeRegistry. isInstanceOf(MediaType a, MediaType b)Checks whether the given media type equals the given base type or is a specialization of it.booleanMediaTypeRegistry. isSpecializationOf(MediaType a, MediaType b)Checks whether the given media type a is a specialization of a more generic type b.MediaTypeMediaTypeRegistry. normalize(MediaType type)static Set<MediaType>MediaType. set(MediaType... types)Convenience method that returns an unmodifiable set that contains all the given media types.voidMimeTypes. setSuperType(MimeType type, MediaType parent)Constructors in org.apache.tika.mime with parameters of type MediaType Constructor Description MediaType(MediaType type, String name, String value)Creates a media type by adding a parameter to a base type.MediaType(MediaType type, Charset charset)Creates a media type by adding the "charset" parameter to a base type.MediaType(MediaType type, Map<String,String> parameters) -
Uses of MediaType in org.apache.tika.parser
Methods in org.apache.tika.parser that return types with arguments of type MediaType Modifier and Type Method Description Map<MediaType,List<Parser>>CompositeParser. findDuplicateParsers(ParseContext context)Utility method that goes through all the component parsers and finds all media types for which more than one parser declares support.Map<MediaType,Parser>CompositeParser. getParsers()Returns the component parsers.Map<MediaType,Parser>CompositeParser. getParsers(ParseContext context)Map<MediaType,Parser>DefaultParser. getParsers(ParseContext context)Set<MediaType>CompositeParser. getSupportedTypes(ParseContext context)Set<MediaType>CryptoParser. getSupportedTypes(ParseContext context)Set<MediaType>DelegatingParser. getSupportedTypes(ParseContext context)Set<MediaType>EmptyParser. getSupportedTypes(ParseContext context)Set<MediaType>ErrorParser. getSupportedTypes(ParseContext context)Set<MediaType>NetworkParser. getSupportedTypes(ParseContext context)Set<MediaType>Parser. getSupportedTypes(ParseContext context)Returns the set of media types supported by this parser when used with the given parse context.Set<MediaType>ParserDecorator. getSupportedTypes(ParseContext context)Delegates the method call to the decorated parser.Set<MediaType>RecursiveParserWrapper. getSupportedTypes(ParseContext context)Set<MediaType>RegexCaptureParser. getSupportedTypes(ParseContext context)Method parameters in org.apache.tika.parser with type arguments of type MediaType Modifier and Type Method Description voidCompositeParser. setParsers(Map<MediaType,Parser> parsers)Sets the component parsers.static ParserParserDecorator. withFallbacks(Collection<? extends Parser> parsers, Set<MediaType> types)Deprecated.This has been replaced byFallbackParserstatic ParserParserDecorator. withoutTypes(Parser parser, Set<MediaType> excludeTypes)Decorates the given parser so that it never claims to support parsing of the given media types, but will work for all others.static ParserParserDecorator. withTypes(Parser parser, Set<MediaType> types)Decorates the given parser so that it always claims to support parsing of the given media types.Constructor parameters in org.apache.tika.parser with type arguments of type MediaType Constructor Description CryptoParser(String transformation, Provider provider, Set<MediaType> types)CryptoParser(String transformation, Set<MediaType> types)NetworkParser(URI uri, Set<MediaType> supportedTypes) -
Uses of MediaType in org.apache.tika.parser.external
Methods in org.apache.tika.parser.external that return types with arguments of type MediaType Modifier and Type Method Description Set<MediaType>ExternalParser. getSupportedTypes()Set<MediaType>ExternalParser. getSupportedTypes(ParseContext context)Method parameters in org.apache.tika.parser.external with type arguments of type MediaType Modifier and Type Method Description voidExternalParser. setSupportedTypes(Set<MediaType> supportedTypes) -
Uses of MediaType in org.apache.tika.parser.external2
Methods in org.apache.tika.parser.external2 that return types with arguments of type MediaType Modifier and Type Method Description Set<MediaType>ExternalParser. getSupportedTypes(ParseContext context) -
Uses of MediaType in org.apache.tika.parser.multiple
Methods in org.apache.tika.parser.multiple that return types with arguments of type MediaType Modifier and Type Method Description Set<MediaType>AbstractMultipleParser. getSupportedTypes(ParseContext context) -
Uses of MediaType in org.apache.tika.renderer
Methods in org.apache.tika.renderer that return types with arguments of type MediaType Modifier and Type Method Description Set<MediaType>CompositeRenderer. getSupportedTypes(ParseContext context)Set<MediaType>Renderer. getSupportedTypes(ParseContext context)Returns the set of media types supported by this renderer when used with the given parse context.Methods in org.apache.tika.renderer with parameters of type MediaType Modifier and Type Method Description RendererCompositeRenderer. getLeafRenderer(MediaType mt)
-