Class MarkingMutableString

    • Field Detail

      • DEFAULT_INTERVAL_SURROUND

        public static final int DEFAULT_INTERVAL_SURROUND
        The default number of words before and after each interval.
        See Also:
        Constant Field Values
      • resume

        public boolean resume
      • marking

        public boolean marking
    • Constructor Detail

      • MarkingMutableString

        public MarkingMutableString​(Marker marker,
                                    MarkingMutableString.EscapeStrategy escapeStrategy,
                                    int intervalSurround)
        Creates a new loose empty marking mutable string.
        Parameters:
        marker - a marker that will decide how to highlight intervals.
        escapeStrategy - the escape strategy for strings passed to appendAndMark(WordReader), or null.
        intervalSurround - the number of words printed before and after each interval.
      • MarkingMutableString

        public MarkingMutableString​(Marker marker,
                                    MarkingMutableString.EscapeStrategy escapeStrategy)
        Creates a new loose empty marking mutable string default interval surround.
        Parameters:
        marker - a marker that will decide how to highlight intervals.
        escapeStrategy - the escape strategy for strings passed to appendAndMark(WordReader), or null.
      • MarkingMutableString

        public MarkingMutableString​(Marker marker)
        Creates a new loose empty marking mutable string with default interval surround, no escaping strategy and no term processor.
        Parameters:
        marker - a marker that will decide how to highlight intervals.