Class SimpleDissector

    • Method Detail

      • getInputType

        public String getInputType()
        Specified by:
        getInputType in class Dissector
        Returns:
        The required typename of the input
      • getPossibleOutput

        public List<String> getPossibleOutput()
        Description copied from class: Dissector
        What are all possible outputs that can be provided.
        Specified by:
        getPossibleOutput in class Dissector
        Returns:
        array of "type:name" values that indicates all the possible outputs. Never a null!
      • prepareForDissect

        public EnumSet<Casts> prepareForDissect​(String inputname,
                                                String outputname)
        Description copied from class: Dissector
        This tells the dissector that it should prepare that we will call it soon with 'inputname' and expect to get 'inputname.outputname' because inputname is of the type returned by getInputType and outputname was part of the answer from getPossibleOutput. This can be used by the dissector implementation to optimize the internal parsing algorithms and lookup tables and such. The dissector must return the types to which this value can be mapped later on during the run.
        Specified by:
        prepareForDissect in class Dissector
        Returns:
        The EnumSet of all allowed casts. Returns an empty EnumSet if nothing is allowed. Never a null !