if (cStart != -1)
if (temp.length() > 0)
    public static IPSFile createIPS(byte[] file1, byte[] file2, int start,        int end)    {        // Creates an IPS file by comparing two files.        // file1 is the modified file, file2 is the orginal file        //System.out.println("Creating a .IPS file");        IPSFile out = new IPSFile();        //String temp = new String();        int cStart = -1;        for (int i = start; i < end; i++)        {            if (file1[i] != file2[i])            {                //temp += (char) file1[i];                if (cStart == -1)                    cStart = i;            }            else            {                //if (temp.length() > 0)                if (cStart != -1)                {                    //out.addRecord(i - temp.length(), temp);                    out.addRecord(cStart, ByteBlock.wrap(file1, cStart, i                        - cStart));                    //temp = new String();                    cStart = -1;                }            }        }        return out;    }