mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 10:04:24 +00:00
37 lines
769 B
C#
37 lines
769 B
C#
using System.IO;
|
|
|
|
namespace CUETools.Processor
|
|
{
|
|
public class ArchiveFileAbstraction : TagLib.File.IFileAbstraction
|
|
{
|
|
private string name;
|
|
private CUESheet _cueSheet;
|
|
|
|
public string Name
|
|
{
|
|
get { return name; }
|
|
}
|
|
|
|
public Stream ReadStream
|
|
{
|
|
get { return _cueSheet.OpenArchive(Name, true); }
|
|
}
|
|
|
|
public Stream WriteStream
|
|
{
|
|
get { return null; }
|
|
}
|
|
|
|
public ArchiveFileAbstraction(CUESheet cueSheet, string file)
|
|
{
|
|
name = file;
|
|
_cueSheet = cueSheet;
|
|
}
|
|
|
|
public void CloseStream(Stream stream)
|
|
{
|
|
stream.Close();
|
|
}
|
|
}
|
|
}
|