File xcdlFile = extractor.extractXCDL(dIn, null, null, null);
XcdlDescription xcdl = null;
if (xcdlFile.exists()) {
FileInputStream fileInputStream;
byte[] binaryXcdl = null;
try {
fileInputStream = new FileInputStream(xcdlFile);
binaryXcdl = new byte[(int) xcdlFile.length()];
fileInputStream.read(binaryXcdl);
fileInputStream.close();
} catch (FileNotFoundException e) {
return null;
} catch (IOException e) {
return null;
}
xcdlFile.delete();
xcdl = new XcdlDescription();
xcdl.getData().setData(binaryXcdl);
xcdl.setFullname(fullname + ".xcdl");
}
return xcdl;
}