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