org.foray.hyphen
Class HyphenationConsumer4a

java.lang.Object
  extended by org.foray.hyphen.HyphenationConsumer4a
All Implemented Interfaces:
org.axsl.hyphen.HyphenationConsumer

public class HyphenationConsumer4a
extends Object
implements org.axsl.hyphen.HyphenationConsumer

FOray implementation of HyphenationConsumer.


Constructor Summary
HyphenationConsumer4a(HyphenationServer4a server)
          Constructor.
 
Method Summary
 HyphenationServer4a getServer()
          Returns the parent server.
 List<org.axsl.hyphen.Word> getUnexpectedWords()
           
 org.axsl.hyphen.Word hyphenate(CharSequence word, int offset, int len, org.axsl.common.i18n.Orthography orthography)
           
 WordSequence4a parseWordSequence(CharSequence characters, int startIndex, int length, org.axsl.common.i18n.Orthography orthography)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyphenationConsumer4a

public HyphenationConsumer4a(HyphenationServer4a server)
Constructor.

Parameters:
server - The parent server.
Method Detail

hyphenate

public org.axsl.hyphen.Word hyphenate(CharSequence word,
                                      int offset,
                                      int len,
                                      org.axsl.common.i18n.Orthography orthography)
                               throws org.axsl.hyphen.HyphenationException
Specified by:
hyphenate in interface org.axsl.hyphen.HyphenationConsumer
Throws:
org.axsl.hyphen.HyphenationException

getUnexpectedWords

public List<org.axsl.hyphen.Word> getUnexpectedWords()
Specified by:
getUnexpectedWords in interface org.axsl.hyphen.HyphenationConsumer

getServer

public HyphenationServer4a getServer()
Returns the parent server.

Returns:
The parent server.

parseWordSequence

public WordSequence4a parseWordSequence(CharSequence characters,
                                        int startIndex,
                                        int length,
                                        org.axsl.common.i18n.Orthography orthography)
Specified by:
parseWordSequence in interface org.axsl.hyphen.HyphenationConsumer


Copyright © 2017. All rights reserved.