More robust--handles the case when tibwn.ini cannot be found.

This commit is contained in:
dchandler 2002-10-04 04:37:32 +00:00
parent 3006b120dc
commit 859a7731fb
1 changed files with 4 additions and 0 deletions

View File

@ -277,6 +277,10 @@ public class TibetanMachineWeb {
try {
URL url = TibetanMachineWeb.class.getResource(fileName);
if (url == null) {
System.err.println("Cannot find " + fileName + "; aborting.");
System.exit(1);
}
InputStreamReader isr = new InputStreamReader(url.openStream());
BufferedReader in = new BufferedReader(isr);