using System.IO; namespace WebDAVSharp.Server.Stores { /// /// This interface must be implemented by classes that will function as a store document. /// public interface IWebDavStoreDocument : IWebDavStoreItem { /// /// Gets the size of the document in bytes. /// long Size { get; } /// /// Gets the mime type of . /// /// /// The type of the MIME. /// string MimeType { get; } /// /// Gets the etag of this . /// /// /// The etag. /// string Etag { get; } /// /// Opens a object for the document, in read-only mode. /// /// /// The object that can be read from. /// Stream OpenReadStream(); ///// ///// Opens a object for the document, in write-only mode. ///// ///// A value indicating whether to append to the existing document; ///// if ///// false, the existing content will be dropped. ///// ///// The object that can be written to. ///// //Stream OpenWriteStream(bool append); void WriteStream(Stream inputStream, bool append); } }