package com.hughes.android.dictionary.engine;
import java.io.File;
-import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintStream;
import java.io.RandomAccessFile;
}
private void checkGolden(final String dictName, final File dictFile)
- throws IOException, FileNotFoundException {
+ throws IOException {
// Check it once:
assertFilesEqual(GOLDENS + dictName + ".text", dictFile.getPath() + ".text");
// Check it again.
- final Dictionary dict = new Dictionary(new RandomAccessFile(dictFile.getAbsolutePath(), "r"));
+ final Dictionary dict = new Dictionary(new RandomAccessFile(dictFile.getAbsolutePath(), "r").getChannel());
final PrintStream out = new PrintStream(new File(dictFile.getPath() + ".text"));
dict.print(out);
out.close();