This repository has been archived on 2024-06-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
thesis-src/Examples/ReportGenerator/Generator/Interface/IStreamWriter.cs
T
2023-12-04 15:18:06 +01:00

38 lines
987 B
C#

namespace ReportGenerator.Generator.Interface;
public interface IStreamWriter : IDisposable
{
/// <inheritdoc cref="TextWriter.WriteLine(string)"/>
IStreamWriter Write(string? text = default);
/// <inheritdoc cref="TextWriter.WriteLine(string)"/>
IStreamWriter WriteLine(string? text = default);
/// <summary>
/// <para>Writes the contents of the given <paramref name="writer"/>
/// to the internal <see cref="Stream"/></para>
/// </summary>
IStreamWriter Write(IStreamWriter writer);
/// <summary>
/// <para>Writes the contents of the given <paramref name="reader"/>
/// to the internal <see cref="Stream"/></para>
/// </summary>
IStreamWriter Write(StreamReader reader);
/// <summary>
/// Finalizes the content writer
/// </summary>
void Close();
/// <summary>
/// Initializes the content writer
/// </summary>
void Open();
/// <summary>
/// Reads the content of the underlying stream
/// </summary>
StreamReader Read();
}