Files
SabreTools/SabreTools.FileTypes/Archives/ZstdArchive.cs
2024-07-15 21:37:38 -04:00

104 lines
2.7 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
namespace SabreTools.FileTypes.Archives
{
/// <summary>
/// Represents a ZstdArchive archive for reading and writing
/// </summary>
/// TODO: Implement from source at https://github.com/skbkontur/ZstdNet
public class ZstdArchive : BaseArchive
{
#region Constructors
/// <summary>
/// Create a new ZstdArchive with no base file
/// </summary>
public ZstdArchive()
: base()
{
this.Type = FileType.ZstdArchive;
}
/// <summary>
/// Create a new ZstdArchive from the given file
/// </summary>
/// <param name="filename">Name of the file to use as an archive</param>
/// <param name="getHashes">True if hashes for this file should be calculated, false otherwise (default)</param>
public ZstdArchive(string filename, bool getHashes)
: base(filename, getHashes)
{
this.Type = FileType.ZstdArchive;
}
#endregion
#region Extraction
/// <inheritdoc/>
public override bool CopyAll(string outDir)
{
throw new NotImplementedException();
}
/// <inheritdoc/>
public override string CopyToFile(string entryName, string outDir)
{
throw new NotImplementedException();
}
/// <inheritdoc/>
public override (Stream?, string?) GetEntryStream(string entryName)
{
throw new NotImplementedException();
}
#endregion
#region Information
/// <inheritdoc/>
public override List<BaseFile> GetChildren()
{
throw new NotImplementedException();
}
/// <inheritdoc/>
public override List<string> GetEmptyFolders()
{
throw new NotImplementedException();
}
/// <inheritdoc/>
public override bool IsTorrent()
{
throw new NotImplementedException();
}
#endregion
#region Writing
/// <inheritdoc/>
public override bool Write(string inputFile, string outDir, BaseFile? baseFile)
{
throw new NotImplementedException();
}
/// <inheritdoc/>
public override bool Write(Stream? inputStream, string outDir, BaseFile? baseFile)
{
throw new NotImplementedException();
}
/// <inheritdoc/>
public override bool Write(List<string> inputFiles, string outDir, List<BaseFile>? baseFiles)
{
throw new NotImplementedException();
}
#endregion
}
}