using System;
using System.Collections.Generic;
using System.Text;
namespace Duplicati.Library.Backend
{
///
/// An interface a backend may implement if it supports streaming operations.
///
public interface IStreamingBackend : IBackend
{
///
/// A value that indicates if the backend supports streaming.
/// Backends that implement the IStreamingBackend interface should return true.
///
bool SupportsStreaming { get; }
///
/// Puts the content of the file to the url passed
///
/// The remote filename, relative to the URL
/// The stream to read from
void Put(string remotename, System.IO.Stream stream);
///
/// Downloads a file with the remote data
///
/// The remote filename, relative to the URL
/// The stream to write data to
void Get(string remotename, System.IO.Stream stream);
}
}