Esempio n. 1
0
        public static XZHeader FromStream(Stream stream)
        {
            var header = new XZHeader(new BinaryReader(new NonDisposingStream(stream), Encoding.UTF8));

            header.Process();
            return(header);
        }
Esempio n. 2
0
 public static bool IsXZStream(Stream stream)
 {
     try
     {
         return(null != XZHeader.FromStream(stream));
     }
     catch (Exception)
     {
         return(false);
     }
 }
Esempio n. 3
0
 private void ReadHeader()
 {
     Header = XZHeader.FromStream(BaseStream);
     AssertBlockCheckTypeIsSupported();
     HeaderIsRead = true;
 }