// which would be easier to parse, but as all SDKs contain the text-file, we'll
// stick to that for now.
final File sdkDescriptor = new File(rootDirectory, "AIR SDK Readme.txt");
if(!sdkDescriptor.exists() || !sdkDescriptor.isFile()) {
throw new ConverterException("Air SDK directory '" + rootDirectory.getPath() +
"' is missing a the version text-file 'AIR SDK Readme.txt'.");
}
DataInputStream in = null;
try {
final FileInputStream descriptorInputStream = new FileInputStream(sdkDescriptor);
in = new DataInputStream(descriptorInputStream);
final BufferedReader br = new BufferedReader(new InputStreamReader(in));
final String strLine = br.readLine();
return strLine.substring("Adobe AIR ".length(), strLine.indexOf(" ", "Adobe AIR ".length()));
} catch (Exception e) {
throw new ConverterException("Error getting AIR version.", e);
} finally {
if (in != null) {
try {
in.close();
} catch (IOException ioe) {