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

Class VCardLineReader

Reads lines from a stream, applying vCard line unfolding (RFC 6350 §3.2). 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
VCardLineReader
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.VCard.Parsing
Assembly: DRIT.Mail.dll
Syntax
public sealed class VCardLineReader : IDisposable

Constructors

View Source

VCardLineReader(Stream, Encoding?, bool)

Initializes a new instance of the VCardLineReader class.

Declaration
public VCardLineReader(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