MCPcopy Create free account
hub / github.com/apache/tika / detect

Method detect

tika-core/src/main/java/org/apache/tika/detect/Detector.java:57–57  ·  view source on GitHub ↗

Detects the content type of the given input document. Returns application/octet-stream if the type of the document can not be detected. If the document input stream is not available, then the first argument may be null . Otherwise the detector may read bytes from the sta

(InputStream input, Metadata metadata)

Source from the content-addressed store, hash-verified

55 * @throws IOException if the document input stream could not be read
56 */
57 MediaType detect(InputStream input, Metadata metadata) throws IOException;
58
59}

Callers 15

parseUsingComponentsMethod · 0.95
timeDetectionMethod · 0.95
indexWithDublinCoreMethod · 0.65
parseEmbeddedMethod · 0.65
ImportContextImplMethod · 0.65
testBundleDetectionMethod · 0.65
testForkParserMethod · 0.65
getBaselineDetectionMethod · 0.65

Implementers 15

EncryptedPrescriptionDetectortika-example/src/main/java/org/apache/
MyCustomDetectortika-core/src/test/java/org/apache/cus
MagicDetectortika-core/src/main/java/org/apache/tik
EmptyDetectortika-core/src/main/java/org/apache/tik
TypeDetectortika-core/src/main/java/org/apache/tik
CompositeDetectortika-core/src/main/java/org/apache/tik
NameDetectortika-core/src/main/java/org/apache/tik
TextDetectortika-core/src/main/java/org/apache/tik
OverrideDetectortika-core/src/main/java/org/apache/tik
ZeroSizeFileDetectortika-core/src/main/java/org/apache/tik
TrainedModelDetectortika-core/src/main/java/org/apache/tik
FileCommandDetectortika-core/src/main/java/org/apache/tik

Calls

no outgoing calls

Tested by 15

timeDetectionMethod · 0.76
testBundleDetectionMethod · 0.52
testForkParserMethod · 0.52
getBaselineDetectionMethod · 0.52
callMethod · 0.52
benchmarkMethod · 0.52
testDetectNullMethod · 0.52
assertTextMethod · 0.52