errorInfo = "Exception occurs when read project index file.\n" + exception;
return false;
}
//end ��ȡ��Ŀ�����ļ�
FmdlParserPrototype parser = new FmdlParserPrototype();
String fmodel = dataSrc.getFeatureModel();
// fmodel = fmodel.replaceAll("[\\\\u0x00]","");
try{
fmodel = new String(fmodel.getBytes(),"gbk");
}catch(Exception e){
}
//begin ��ȡ����ģ�������ļ�
try {
// InputStream inputStream = new StringBufferInputStream(fmodel);
InputStream inputStream = new ByteArrayInputStream(fmodel.getBytes());
fcomponent = parser.openFmdl(inputStream);
} catch (Exception exception) {
errorInfo = "Exception occurs when read feature-model file.\n" + exception;
return false;
}
//end ��ȡ����ģ�������ļ�
//begin ��ȡԼ��ģ�������ļ�
try {
String cm = dataSrc.getConstraintModel();
InputStream input = new ByteArrayInputStream(cm.getBytes());
parser.openCmdl(input, fcomponent);
} catch (Exception exception) {
errorInfo = "Exception occurs when read constraint-model file.\n" + exception;
return false;
}
//end ��ȡԼ��ģ�������ļ�
//Question: *.im �洢ʲô��Ϣ��im means Interaction-Model
try{
String im = dataSrc.getInteractionModel();
InputStream input =new ByteArrayInputStream(im.getBytes());
parser.openImdl(input, fcomponent);
} catch (Exception exception) {
errorInfo = "Exception occurs when read interaction-model file.\n" + exception;
return false;
}