Class ExecutableParser

    • Constructor Detail

      • ExecutableParser

        public ExecutableParser()
    • Method Detail

      • getSupportedTypes

        public Set<org.apache.tika.mime.MediaType> getSupportedTypes​(org.apache.tika.parser.ParseContext context)
        Specified by:
        getSupportedTypes in interface org.apache.tika.parser.Parser
      • parse

        public void parse​(InputStream stream,
                          ContentHandler handler,
                          org.apache.tika.metadata.Metadata metadata,
                          org.apache.tika.parser.ParseContext context)
                   throws IOException,
                          SAXException,
                          org.apache.tika.exception.TikaException
        Specified by:
        parse in interface org.apache.tika.parser.Parser
        Throws:
        IOException
        SAXException
        org.apache.tika.exception.TikaException
      • parsePE

        public void parsePE​(org.apache.tika.sax.XHTMLContentHandler xhtml,
                            org.apache.tika.metadata.Metadata metadata,
                            InputStream stream,
                            byte[] first4)
                     throws org.apache.tika.exception.TikaException,
                            IOException
        Parses a DOS or Windows PE file
        Throws:
        org.apache.tika.exception.TikaException
        IOException
      • parseELF

        public void parseELF​(org.apache.tika.sax.XHTMLContentHandler xhtml,
                             org.apache.tika.metadata.Metadata metadata,
                             InputStream stream,
                             byte[] first4)
                      throws org.apache.tika.exception.TikaException,
                             IOException
        Parses a Unix ELF file
        Throws:
        org.apache.tika.exception.TikaException
        IOException