in src/java/org/apache/fulcrum/jce/crypto/SmartDecryptingInputStream.java [311:333]
private boolean isZip( byte[] content )
{
if( content.length < 64 )
{
return false;
}
else
{
// A ZIP starts with Hex: "50 4B 03 04"
if( ( content[0] == (byte) 0x50 ) &&
( content[1] == (byte) 0x4B ) &&
( content[2] == (byte) 0x03 ) &&
( content[3] == (byte) 0x04 ) )
{
return true;
}
else
{
return false;
}
}
}