Once the manager is created, we can read the usa.ivl file which can be found in the getstart directory. ILOG JViews Framework provides facilities to save and read graphic objects in a manager. These files are in the IVL format.
We need to catch the exception that may occur when reading the file. The method read of the class IlvManager may throw the following exceptions:
-
IOException for basic IO errors.
-
IlvReadFileException, if the format of the file is not correct (the file is not an .ivl formatted file) or if a graphic class needed to load the file cannot be found.
try {
manager.read(new URL("usa.ivl");
} catch (Exception e) {}
|