/**
  * Constructor
  *
  * @param spacer - char to place in breaks which are found
  * @param dictionary
  * @throws IOException
  */
 public MyanmarBreaker(char spacer, BufferedReader dictionary) throws IOException {
   mSpacer = spacer;
   MyanmarParser mp = new MyanmarParser();
   if (dictionary != null) {
     String word = dictionary.readLine();
     while (word != null) {
       int offset = 0;
       int syllableCount = 0;
       while (offset < word.length()) {
         ClusterProperties cp = mp.getNextLineBreak(word, offset);
         offset = cp.getEnd();
         ++syllableCount;
       }
       mMaxSyllables = Math.max(mMaxSyllables, syllableCount);
       mWordList.add(word);
       word = dictionary.readLine();
     }
   }
 }