Class RetaTikaParser

java.lang.Object
com.ben12.reta.plugin.tika.parser.RetaTikaParser
All Implemented Interfaces:
com.ben12.reta.api.RETAParser

public class RetaTikaParser extends Object implements com.ben12.reta.api.RETAParser
RETA parser using TIKA.
Author:
BenoƮt Moreau (ben.12)
  • Constructor Details

    • RetaTikaParser

      public RetaTikaParser(TikaSourceConfiguration theConfiguration)
      Parameters:
      theConfiguration - the configuration container
  • Method Details

    • parseSource

      public void parseSource(com.ben12.reta.api.RequirementSourceManager manager) throws com.ben12.reta.api.RETAParseException
      Specified by:
      parseSource in interface com.ben12.reta.api.RETAParser
      Throws:
      com.ben12.reta.api.RETAParseException
    • parseSourcePreview

      public void parseSourcePreview(com.ben12.reta.api.RequirementSourceManager manager, StringBuilder output, int limit) throws com.ben12.reta.api.RETAParseException
      Specified by:
      parseSourcePreview in interface com.ben12.reta.api.RETAParser
      Throws:
      com.ben12.reta.api.RETAParseException
    • parse

      public void parse(com.ben12.reta.api.RequirementSourceManager requirementSource, StringBuilder sourceText, int limit) throws IOException
      Parameters:
      requirementSource - RETA requirement manager
      sourceText - text output for preview
      limit - text output length limit for preview
      Throws:
      IOException - I/O exception