in src/java/org/apache/fulcrum/jce/crypto/SmartDecryptingInputStream.java [228:243]
private boolean hasByteOrderMark( byte[] content )
{
// bytes ar always signed in java, ff is 255
// removes signed parts
int firstUnsigned = content[0] & 0xFF;
int second = content[1] & 0xFF;
if( ((firstUnsigned == 0xFF) && (second == 0xFE)) ||
((firstUnsigned == 0xFE) && (second == 0xFF)))
{
return true;
}
else
{
return false;
}
}