Files

71 lines
2.1 KiB
C#
Raw Permalink Normal View History

2013-04-07 10:58:58 +01:00
using System;
using System.Collections.Generic;
namespace SharpCompress.Common
{
public abstract class Entry : SharpCompress.Common.IEntry
{
internal bool IsSolid { get; set; }
2013-04-07 10:58:58 +01:00
/// <summary>
/// The File's 32 bit CRC Hash
/// </summary>
2013-04-28 12:32:55 +01:00
public abstract uint Crc { get; }
2013-04-07 10:58:58 +01:00
/// <summary>
/// The path of the file internal to the Rar Archive.
/// </summary>
2013-04-28 12:32:55 +01:00
public abstract string FilePath { get; }
2013-04-07 10:58:58 +01:00
/// <summary>
/// The compressed file size
/// </summary>
2013-04-28 12:32:55 +01:00
public abstract long CompressedSize { get; }
2013-04-07 10:58:58 +01:00
/// <summary>
/// The compression type
/// </summary>
2013-04-28 12:32:55 +01:00
public abstract CompressionType CompressionType { get; }
2013-04-07 10:58:58 +01:00
/// <summary>
/// The uncompressed file size
/// </summary>
2013-04-28 12:32:55 +01:00
public abstract long Size { get; }
2013-04-07 10:58:58 +01:00
/// <summary>
/// The entry last modified time in the archive, if recorded
/// </summary>
2013-04-28 12:32:55 +01:00
public abstract DateTime? LastModifiedTime { get; }
2013-04-07 10:58:58 +01:00
/// <summary>
/// The entry create time in the archive, if recorded
/// </summary>
2013-04-28 12:32:55 +01:00
public abstract DateTime? CreatedTime { get; }
2013-04-07 10:58:58 +01:00
/// <summary>
/// The entry last accessed time in the archive, if recorded
/// </summary>
2013-04-28 12:32:55 +01:00
public abstract DateTime? LastAccessedTime { get; }
2013-04-07 10:58:58 +01:00
/// <summary>
/// The entry time whend archived, if recorded
/// </summary>
2013-04-28 12:32:55 +01:00
public abstract DateTime? ArchivedTime { get; }
2013-04-07 10:58:58 +01:00
/// <summary>
/// Entry is password protected and encrypted and cannot be extracted.
/// </summary>
2013-04-28 12:32:55 +01:00
public abstract bool IsEncrypted { get; }
2013-04-07 10:58:58 +01:00
/// <summary>
/// Entry is password protected and encrypted and cannot be extracted.
/// </summary>
2013-04-28 12:32:55 +01:00
public abstract bool IsDirectory { get; }
2013-04-07 10:58:58 +01:00
2013-04-28 12:32:55 +01:00
public abstract bool IsSplit { get; }
2013-04-07 10:58:58 +01:00
2013-04-28 12:32:55 +01:00
internal abstract IEnumerable<FilePart> Parts { get; }
2013-04-07 10:58:58 +01:00
internal abstract void Close();
}
}