Class InputFileDetector

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.tika.detect.Detector

    public class InputFileDetector
    extends java.lang.Object
    implements org.apache.tika.detect.Detector
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.tika.mime.MediaType detect​(java.io.InputStream input, org.apache.tika.metadata.Metadata metadata)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InputFileDetector

        public InputFileDetector()
    • Method Detail

      • detect

        public org.apache.tika.mime.MediaType detect​(java.io.InputStream input,
                                                     org.apache.tika.metadata.Metadata metadata)
                                              throws java.io.IOException
        Specified by:
        detect in interface org.apache.tika.detect.Detector
        Throws:
        java.io.IOException