Dummy detector that returns application/octet-stream for all documents.
| 26 | * Dummy detector that returns application/octet-stream for all documents. |
| 27 | */ |
| 28 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…