public static Dictionary read ( Path location ) throws IOException { final Path metadata = DictionaryMetadata . getExpectedMetadataLocation ( location ) ; try ( InputStream fsaStream = Files . newInputStream ( location ) ; InputStream metadataStream = Files . newInputStream ( metadata ) ) { return read ( fsaStream , metadataStream ) ; } }
Attempts to load a dictionary using the path to the FSA file and the expected metadata extension .