} catch (Exception exception) {
errorInfo = "Exception occurs when read interaction-model file.\n" + exception;
return false;
}
AdaptedStandardStorageFormat reader = new AdaptedStandardStorageFormat();
if (viewNameArray.length > 0) {
//begin ��ȡͼԪ��Ϣ�ļ�
try {
drawingArray = new Drawing[viewNameArray.length];
for (int i = 0; i < viewNameArray.length; i++) {
zipEntry = zipFile.getEntry(viewNameArray[i] + ".draw");
InputStream inputStream = zipFile.getInputStream(zipEntry);
drawingArray[i] = reader.restore(inputStream);
}
} catch (Exception exception) {
errorInfo = "Exception occurs when read project graphic file.\n" + exception;
return false;
}
//end ��ȡͼԪ��Ϣ�ļ�
} else {
drawingArray = new Drawing[0];
}
//begin ��ȡ������Ϣ
informationMap = new GroupTreeMap();
Enumeration enumeration = zipFile.entries();
while (enumeration.hasMoreElements()) {
ZipEntry entry = (ZipEntry) enumeration.nextElement();
String entryName = entry.getName();
if (entryName.endsWith(".draw")) {
int index = entryName.indexOf('\\');
if (index > 0) {
try {
String id = entryName.substring(0, index);
InputStream inputStream = zipFile.getInputStream(entry);
Drawing drawing = reader.restore(inputStream);
informationMap.add(id, drawing);
} catch (Exception exception) {
errorInfo = "Exception occurs when read information.\n" + exception;
exception.printStackTrace();
return false;