Class BOMDetector

  • All Implemented Interfaces:
    Serializable, org.apache.tika.detect.EncodingDetector

    public class BOMDetector
    extends Object
    implements org.apache.tika.detect.EncodingDetector
    See Also:
    Serialized Form
    • Constructor Detail

      • BOMDetector

        public BOMDetector()
    • Method Detail

      • detect

        public Charset detect​(InputStream input,
                              org.apache.tika.metadata.Metadata metadata)
                       throws IOException
        Specified by:
        detect in interface org.apache.tika.detect.EncodingDetector
        Throws:
        IOException