public Dictionary(Directory tempDir,String tempFileNamePrefix,InputStream affix,InputStream dictionary) throws IOException, ParseException {
  this(tempDir,tempFileNamePrefix,affix,Collections.singletonList(dictionary),false);
}

public Dictionary ( Directory tempDir , String tempFileNamePrefix , InputStream affix , InputStream dictionary ) throws IOException , ParseException { this ( tempDir , tempFileNamePrefix , affix , Collections . singletonList ( dictionary ) , false ) ; }
creates a new dictionary containing the information read from the provided inputstreams to hunspell affix and dictionary files . you have to close the provided inputstreams yourself .
