Class ThaiBreakEngine

    • Constructor Detail

      • ThaiBreakEngine

        public ThaiBreakEngine()
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • divideUpDictionaryRange

        public int divideUpDictionaryRange​(java.text.CharacterIterator fIter,
                                           int rangeStart,
                                           int rangeEnd,
                                           DictionaryBreakEngine.DequeI foundBreaks,
                                           boolean isPhraseBreaking)
        Description copied from class: DictionaryBreakEngine

        Divide up a range of known dictionary characters handled by this break engine.

        Specified by:
        divideUpDictionaryRange in class DictionaryBreakEngine
        Parameters:
        fIter - A UText representing the text
        rangeStart - The start of the range of dictionary characters
        rangeEnd - The end of the range of dictionary characters
        foundBreaks - Output of break positions. Positions are pushed. Pre-existing contents of the output stack are unaltered.
        Returns:
        The number of breaks found