Added accessor for 7zip is anti

This commit is contained in:
Adam Hathcock
2013-04-28 11:27:40 +01:00
parent 8340d1edd6
commit 2be7b49eb7

View File

@@ -1,5 +1,4 @@
using System.IO;
using System.Linq;
using SharpCompress.Common;
using SharpCompress.Common.SevenZip;
@@ -17,7 +16,7 @@ namespace SharpCompress.Archive.SevenZip
public Stream OpenEntryStream()
{
return Parts.Single().GetCompressedStream();
return FilePart.GetCompressedStream();
}
public void WriteTo(Stream stream)
@@ -36,5 +35,13 @@ namespace SharpCompress.Archive.SevenZip
return true;
}
}
/// <summary>
/// This is a 7Zip Anti item
/// </summary>
public bool IsAnti
{
get { return FilePart.Header.IsAnti; }
}
}
}