private void ValidateCompression()
{
if ((_CompressionMethod_FromZipFile != (short)CompressionMethod.None) &&
(_CompressionMethod_FromZipFile != (short)CompressionMethod.Deflate)
#if BZIP
&& (_CompressionMethod_FromZipFile != (short)CompressionMethod.BZip2)
#endif
)
throw new ZipException(String.Format("Entry {0} uses an unsupported compression method (0x{1:X2}, {2})",
FileName, _CompressionMethod_FromZipFile, UnsupportedCompressionMethod));
}