Example #1
0
 private void LoadFactory(Stream stream)
 {
     if (factory == null)
     {
         stream.Position = 0;
         factory         = new SevenZipHeaderFactory(stream);
     }
 }
Example #2
0
 public static bool IsSevenZipFile(Stream stream)
 {
     try
     {
         return(SevenZipHeaderFactory.SignatureMatch(stream));
     }
     catch
     {
         return(false);
     }
 }