Uses of Class
org.apache.tika.mime.MediaType
Packages that use MediaType
Package
Description
Tika configuration tools.
Media type detection.
Extraction of component documents.
Forked parser.
Media type information.
Tika parsers.
External parser process.
-
Uses of MediaType in org.apache.tika.config
Methods in org.apache.tika.config with parameters of type MediaType -
Uses of MediaType in org.apache.tika.detect
Methods in org.apache.tika.detect that return MediaTypeModifier and TypeMethodDescriptionCompositeDetector.detect(InputStream input, Metadata metadata) Detector.detect(InputStream input, Metadata metadata) Detects the content type of the given input document.EmptyDetector.detect(InputStream input, Metadata metadata) FileCommandDetector.detect(InputStream input, Metadata metadata) MagicDetector.detect(InputStream input, Metadata metadata) NameDetector.detect(InputStream input, Metadata metadata) Detects the content type of an input document based on the document name given in the input metadata.OverrideDetector.detect(InputStream input, Metadata metadata) Deprecated.TextDetector.detect(InputStream input, Metadata metadata) Looks at the beginning of the document input stream to determine whether the document is text or not.TrainedModelDetector.detect(InputStream input, Metadata metadata) TypeDetector.detect(InputStream input, Metadata metadata) Detects the content type of an input document based on a type hint given in the input metadata.ZeroSizeFileDetector.detect(InputStream stream, Metadata metadata) NNTrainedModelBuilder.getType()Methods in org.apache.tika.detect with parameters of type MediaTypeModifier and TypeMethodDescriptionstatic MagicDetectorprotected voidTrainedModelDetector.registerModels(MediaType type, TrainedModel model) voidConstructors in org.apache.tika.detect with parameters of type MediaTypeModifierConstructorDescriptionMagicDetector(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 MediaTypeModifierConstructorDescriptionNameDetector(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 MediaTypeModifier and TypeMethodDescriptionEmbedder.getSupportedEmbedTypes(ParseContext context) Returns the set of media types supported by this embedder when used with the given parse context.ExternalEmbedder.getSupportedEmbedTypes()ExternalEmbedder.getSupportedEmbedTypes(ParseContext context) Method parameters in org.apache.tika.embedder with type arguments of type MediaTypeModifier and TypeMethodDescriptionvoidExternalEmbedder.setSupportedEmbedTypes(Set<MediaType> supportedEmbedTypes) -
Uses of MediaType in org.apache.tika.extractor
Methods in org.apache.tika.extractor with parameters of type MediaTypeModifier and TypeMethodDescriptionvoidEmbeddedResourceHandler.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 -
Uses of MediaType in org.apache.tika.mime
Fields in org.apache.tika.mime declared as MediaTypeModifier and TypeFieldDescriptionstatic final MediaTypeMediaType.APPLICATION_XMLstatic final MediaTypeMediaType.APPLICATION_ZIPstatic final MediaTypeMediaType.EMPTYstatic final MediaTypeMediaType.OCTET_STREAMstatic final MediaTypeMediaType.TEXT_HTMLstatic final MediaTypeMediaType.TEXT_PLAINMethods in org.apache.tika.mime that return MediaTypeModifier and TypeMethodDescriptionstatic MediaTypeMediaType.application(String type) static 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.ProbabilisticMimeDetectionSelector.detect(InputStream input, Metadata metadata) MediaType.getBaseType()Returns the base form of the MediaType, excluding any parameters, such as "text/plain" for "text/plain; charset=utf-8"MediaTypeRegistry.getSupertype(MediaType type) Returns the supertype of the given type.MimeType.getType()Returns the normalized media type name.static MediaTypestatic MediaTypeParses the given string to a media type.static MediaTypestatic MediaTypeMethods in org.apache.tika.mime that return types with arguments of type MediaTypeModifier and TypeMethodDescriptionMediaTypeRegistry.getAliases(MediaType type) Returns the set of known aliases of the given canonical media type.MediaTypeRegistry.getChildTypes(MediaType type) Returns the set of known children of the given canonical media typeMediaTypeRegistry.getTypes()Returns the set of all known canonical media types.Convenience method that parses the given media type strings and returns an unmodifiable set that contains all the parsed 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 MediaTypeModifier and TypeMethodDescriptionvoidvoidMediaTypeRegistry.addSuperType(MediaType type, MediaType supertype) voidintMediaTypeRegistry.getAliases(MediaType type) Returns the set of known aliases of the given canonical media type.MediaTypeRegistry.getChildTypes(MediaType type) Returns the set of known children of the given canonical media typeMediaTypeRegistry.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.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 MediaTypeModifierConstructorDescriptionCreates a media type by adding a parameter to a base type.Creates a media type by adding the "charset" parameter to a base type. -
Uses of MediaType in org.apache.tika.parser
Methods in org.apache.tika.parser that return types with arguments of type MediaTypeModifier and TypeMethodDescriptionCompositeParser.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.CompositeParser.getParsers()Returns the component parsers.CompositeParser.getParsers(ParseContext context) DefaultParser.getParsers(ParseContext context) CompositeParser.getSupportedTypes(ParseContext context) CryptoParser.getSupportedTypes(ParseContext context) DelegatingParser.getSupportedTypes(ParseContext context) EmptyParser.getSupportedTypes(ParseContext context) ErrorParser.getSupportedTypes(ParseContext context) NetworkParser.getSupportedTypes(ParseContext context) Parser.getSupportedTypes(ParseContext context) Returns the set of media types supported by this parser when used with the given parse context.ParserDecorator.getSupportedTypes(ParseContext context) Delegates the method call to the decorated parser.RecursiveParserWrapper.getSupportedTypes(ParseContext context) RegexCaptureParser.getSupportedTypes(ParseContext context) Method parameters in org.apache.tika.parser with type arguments of type MediaTypeModifier and TypeMethodDescriptionvoidCompositeParser.setParsers(Map<MediaType, Parser> parsers) Sets the component parsers.static final ParserParserDecorator.withFallbacks(Collection<? extends Parser> parsers, Set<MediaType> types) Deprecated.This has been replaced byFallbackParserstatic final 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 final ParserDecorates 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 MediaTypeModifierConstructorDescriptionCryptoParser(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 MediaTypeModifier and TypeMethodDescriptionExternalParser.getSupportedTypes()ExternalParser.getSupportedTypes(ParseContext context) Method parameters in org.apache.tika.parser.external with type arguments of type MediaTypeModifier and TypeMethodDescriptionvoidExternalParser.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 -
Uses of MediaType in org.apache.tika.parser.multiple
Methods in org.apache.tika.parser.multiple that return types with arguments of type MediaType -
Uses of MediaType in org.apache.tika.renderer
Methods in org.apache.tika.renderer that return types with arguments of type MediaTypeModifier and TypeMethodDescriptionCompositeRenderer.getSupportedTypes(ParseContext context) 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
TikaConfig.getParser()method instead