Class MaxLinesPrematchHandle

java.lang.Object
com.ibm.jvm.dtfjview.tools.utils.MaxLinesPrematchHandle
All Implemented Interfaces:
IPrematchHandle

public class MaxLinesPrematchHandle extends Object implements IPrematchHandle
This class first caches up to a specified number of lines before the matching is found. The lines will be released whenever it is asked to do so.

  • Constructor Details

    • MaxLinesPrematchHandle

      public MaxLinesPrematchHandle(int maxPrematchLines)
  • Method Details

    • process

      public void process(String s)
      Description copied from interface: IPrematchHandle
      This is for the prematch handle to process the incoming string (such as cache it, trim it, etc).

      Specified by:
      process in interface IPrematchHandle
    • release

      public String release()
      Description copied from interface: IPrematchHandle
      This is to release the string. Note, depending on the actual implementation of the pre-match handle, the released string can have multiple lines.

      Specified by:
      release in interface IPrematchHandle
      Returns:
      a String object.