• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ICalLineReader

Reads lines from a stream, applying iCalendar line unfolding (RFC 5545 §3.1). A line longer than 75 octets is folded by inserting CRLF followed by a single space or tab; unfolding removes the CRLF and the single whitespace character.

Inheritance
object
ICalLineReader
Implements
IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.ICal.Parsing
Assembly: DRIT.Mail.dll
Syntax
public sealed class ICalLineReader : IDisposable

Constructors

View Source

ICalLineReader(Stream, Encoding?, bool)

Initializes a new instance of the ICalLineReader class.

Declaration
public ICalLineReader(Stream stream, Encoding? encoding = null, bool leaveOpen = false)
Parameters
Type Name Description
Stream stream

The stream to read from.

Encoding encoding

The encoding used to decode bytes to strings. Defaults to UTF-8.

bool leaveOpen

If true, the underlying stream is left open when this reader is disposed.

Methods

View Source

Dispose()

Processes the dispose data.

Declaration
public void Dispose()
View Source

ReadLine()

Reads a single unfolded line from the stream. Returns null at EOF. The line terminator is not included.

Declaration
public string? ReadLine()
Returns
Type Description
string
View Source

ReadLines()

Reads all remaining unfolded lines from the stream.

Declaration
public IReadOnlyList<string> ReadLines()
Returns
Type Description
IReadOnlyList<string>

Implements

IDisposable
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX