Community
Participate
Working Groups
int c2= is2.read();
if (c1 == -1 && c2 == -1)
return true;
/* FIX!!!! Obviously this is not the way to fix the problem,
but it helps point out where the problem is */
if (isWhiteSpace(c1))
continue;
if (isWhiteSpace(c2))
if (c1 != c2)
break;
return false;
}
/**
* @param c1
* @return
*/
private boolean isWhiteSpace(int c1) {
return (c1==' ')||(c1=='\t')||(c1=='\r')||(c1=='\n');
/*
* Tries to return an InputStream for the given object.
* Returns <code>null</code> if the object not an IStreamContentAccessor