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

Class EmptyDetector

tika-core/src/main/java/org/apache/tika/detect/EmptyDetector.java:28–39  ·  view source on GitHub ↗

Dummy detector that returns application/octet-stream for all documents.

Source from the content-addressed store, hash-verified

26 * Dummy detector that returns application/octet-stream for all documents.
27 */
28public class EmptyDetector implements Detector {
29
30 /**
31 * Singleton instance of this class.
32 */
33 public static final EmptyDetector INSTANCE = new EmptyDetector();
34
35 public MediaType detect(InputStream input, Metadata metadata) throws IOException {
36 return MediaType.OCTET_STREAM;
37 }
38
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…