mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUETools.Processor: split classes into separate files.
This commit is contained in:
36
CUETools.Processor/ArchiveFileAbstraction.cs
Normal file
36
CUETools.Processor/ArchiveFileAbstraction.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user