public static synchronized Hunspell getInstance ( String libDir ) throws UnsatisfiedLinkError , UnsupportedOperationException { if ( hunspell != null ) { return hunspell ; } hunspell = new Hunspell ( libDir ) ; return hunspell ; }
The instance of the HunspellManager looks for the native lib in the directory specified .