Class WordDelimiterFilter.WordDelimiterConcatenation

  • Enclosing class:
    WordDelimiterFilter

    final class WordDelimiterFilter.WordDelimiterConcatenation
    extends java.lang.Object
    A WDF concatenated 'run'
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.StringBuilder buffer  
      (package private) int endOffset  
      (package private) int startOffset  
      (package private) int subwordCount  
      (package private) int type  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void append​(char[] text, int offset, int length)
      Appends the given text of the given length, to the concetenation at the given offset
      (package private) void clear()
      Clears the concatenation and resets its state
      (package private) boolean isEmpty()
      Determines if the concatenation is empty
      (package private) void write()
      Writes the concatenation to the attributes
      (package private) void writeAndClear()
      Convenience method for the common scenario of having to write the concetenation and then clearing its state
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • buffer

        final java.lang.StringBuilder buffer
      • startOffset

        int startOffset
      • endOffset

        int endOffset
      • type

        int type
      • subwordCount

        int subwordCount
    • Constructor Detail

      • WordDelimiterConcatenation

        WordDelimiterConcatenation()
    • Method Detail

      • append

        void append​(char[] text,
                    int offset,
                    int length)
        Appends the given text of the given length, to the concetenation at the given offset
        Parameters:
        text - Text to append
        offset - Offset in the concetenation to add the text
        length - Length of the text to append
      • write

        void write()
        Writes the concatenation to the attributes
      • isEmpty

        boolean isEmpty()
        Determines if the concatenation is empty
        Returns:
        true if the concatenation is empty, false otherwise
      • clear

        void clear()
        Clears the concatenation and resets its state
      • writeAndClear

        void writeAndClear()
        Convenience method for the common scenario of having to write the concetenation and then clearing its state