Class SourceCodeParser

  • All Implemented Interfaces:
    Serializable, org.apache.tika.parser.Parser

    public class SourceCodeParser
    extends org.apache.tika.parser.AbstractEncodingDetectorParser
    Generic Source code parser for Java, Groovy, C++. Aware: This parser uses JHightlight library (https://github.com/codelibs/jhighlight) under CDDL/LGPL dual license
    Since:
    1.6
    Author:
    Hong-Thai.Nguyen
    See Also:
    Serialized Form
    • Constructor Detail

      • SourceCodeParser

        public SourceCodeParser()
      • SourceCodeParser

        public SourceCodeParser​(org.apache.tika.detect.EncodingDetector encodingDetector)
    • Method Detail

      • getSupportedTypes

        public Set<org.apache.tika.mime.MediaType> getSupportedTypes​(org.apache.tika.parser.ParseContext context)