return (name.endsWith(".img") || name.endsWith(".IMG")) && name.length() < 20;
}
});
for (File file : files) {
Parser parser = new FileParser(file);
parser.parse();
IMG img = parser.getIMG();
Header header = img.getImgHeader();
PartitionTable partitionTable = header.getPartitionTable();
System.out.println("IMG " + img.getName() + " - " + file.length());
System.out.println("XOR'd " +header.isXorEd());