Files
sharpcompress/SharpCompress/Common/GenericVolume.cs
Adam Hathcock 7ce4b7d076 Initial commit
2013-04-07 10:58:58 +01:00

54 lines
1.0 KiB
C#

using System.IO;
namespace SharpCompress.Common
{
public class GenericVolume : Volume
{
#if !PORTABLE
private FileInfo fileInfo;
#endif
public GenericVolume(Stream stream, Options options)
: base(stream, options)
{
}
#if !PORTABLE
public GenericVolume(FileInfo fileInfo, Options options)
: base(fileInfo.OpenRead(), options)
{
this.fileInfo = fileInfo;
}
#endif
#if !PORTABLE
/// <summary>
/// File that backs this volume, if it not stream based
/// </summary>
public override FileInfo VolumeFile
{
get
{
return fileInfo;
}
}
#endif
public override bool IsFirstVolume
{
get
{
return true;
}
}
public override bool IsMultiVolume
{
get
{
return true;
}
}
}
}