using System; using VersOne.Epub.Schema; namespace VersOne.Epub { /// /// A file within the EPUB archive with its content represented as a string. It is used mainly for HTML and CSS files. /// Unlike , this class contains the whole content of the file. /// public class EpubLocalTextContentFile : EpubLocalContentFile { /// /// Initializes a new instance of the class. /// /// The content file key as it is declared in the EPUB manifest (in the property). /// The type of the content of the file. /// The MIME type of the content of the file. /// The absolute path of the local content file in the EPUB archive. /// The content of the file. /// The parameter is null. /// The parameter is null. /// The parameter is null. public EpubLocalTextContentFile(string key, EpubContentType contentType, string contentMimeType, string filePath, string content) : base(key, contentType, contentMimeType, filePath) { Content = content ?? throw new ArgumentNullException(nameof(content)); } /// /// Gets the content of the file. /// public string Content { get; } /// /// Gets the type of the content file which is always for local text content files. /// public override EpubContentFileType ContentFileType => EpubContentFileType.TEXT; } }