public MnemonicCode(InputStream wordstream,String wordListDigest) throws IOException, IllegalArgumentException {
  BufferedReader br=new BufferedReader(new InputStreamReader(wordstream,"UTF-8"));
  wordList=new ArrayList<String>(2048);
  String word;
  while ((word=br.readLine()) != null)   wordList.add(word);
  br.close();
  initializeFromWords(wordList,wordListDigest);
}

public MnemonicCode ( InputStream wordstream , String wordListDigest ) throws IOException , IllegalArgumentException { BufferedReader br = new BufferedReader ( new InputStreamReader ( wordstream , "UTF-8" ) ) ; wordList = new ArrayList < String > ( 2048 ) ; String word ; while ( ( word = br . readLine ( ) ) != null ) wordList . add ( word ) ; br . close ( ) ; initializeFromWords ( wordList , wordListDigest ) ; }
creates an mnemoniccode object , initializing with words read from the supplied input stream . if a wordlistdigest is supplied the digest of the words will be checked .
