System.out.println("Manufacturer:"+manufacturer+" Model:"+model+" Patch Type:"+patchType); System.out.println("Comp.String: "+compareString); System.out.println("DriverString:"+driverString); System.out.println("PatchString: "+patchString);
    public boolean supportsPatch (StringBuffer patchString,Patch p)    {        //System.out.println("SupportsPatch:"+manufacturer+" "+model+" "+patchType+" "+patchSize+" "+p.sysex.length);        if ((patchSize!=p.sysex.length) && (patchSize!=0)) return false;        StringBuffer driverString=new StringBuffer (sysexID);        StringBuffer compareString=new StringBuffer ();        if (patchString.length()<driverString.length()) return false;        for (int j=0, i=0;j<driverString.length ();j++,i++)        {            switch (driverString.charAt (j))            {                case '*':                    compareString.append (patchString.charAt (i));                    break;                default: compareString.append (driverString.charAt(j));                            }        }        System.out.println("Manufacturer:"+manufacturer+" Model:"+model+" Patch Type:"+patchType);        System.out.println("Comp.String: "+compareString);        System.out.println("DriverString:"+driverString);        System.out.println("PatchString: "+patchString);        return (compareString.toString ().equalsIgnoreCase (patchString.toString ().substring (0,driverString.length ())));    }