/** * Constructs a new SpellDictionaryASpell * @param phonetic The file to use for phonetic transformation of the * words list. If <code>phonetic</code> is null, the the transformation * uses {@link DoubleMeta} transformation. * @throws java.io.IOException indicates problems reading the phonetic * information */ public SpellDictionaryASpell(File phonetic) throws IOException { if (phonetic == null) tf = new DoubleMeta(); else tf = new GenericTransformator(phonetic); }
/** * Constructs a new SpellDictionaryASpell * @param phonetic The Reader to use for phonetic transformation of the * words list. If <code>phonetic</code> is null, the the transformation * uses {@link DoubleMeta} transformation. * @throws java.io.IOException indicates problems reading the phonetic * information */ public SpellDictionaryASpell(Reader phonetic) throws IOException { if (phonetic == null) tf = new DoubleMeta(); else tf = new GenericTransformator(phonetic); }
/** * Constructs a new SpellDictionaryASpell * @param phonetic The file to use for phonetic transformation of the * words list. If <code>phonetic</code> is null, the the transformation * uses {@link DoubleMeta} transformation. * @param encoding Uses the character set encoding specified * @throws java.io.IOException indicates problems reading the phonetic * information */ public SpellDictionaryASpell(File phonetic, String encoding) throws IOException { if (phonetic == null) tf = new DoubleMeta(); else tf = new GenericTransformator(phonetic, encoding); }