C# Class CalDavSynchronizer.ThoughtvCardWorkaround.vCardImprovedWriter

Implements the standard vCard 2.1 and 3.0 text formats.
Inheritance: Thought.vCards.vCardWriter
显示文件 Open project: aluxnimm/outlookcaldavsynchronizer

Public Methods

Method Description
EncodeBase64 ( byte value ) : string

Converts a byte to a BASE64 string.

EncodeBase64 ( int value ) : string

Converts an integer to a BASE64 string.

EncodeEscaped ( string value ) : string

Encodes a string using simple escape codes.

EncodeEscaped ( string value, char escaped ) : string

Encodes a character array using simple escape sequences.

EncodeProperty ( Thought.vCards.vCardProperty property ) : string

Returns property encoded into a standard vCard NAME:VALUE format.

EncodeQuotedPrintable ( string value ) : string

Converts a string to quoted-printable format.

Write ( Thought.vCards.vCard card, TextWriter output ) : void

Writes a vCard to an output text writer.

Write ( vCardPropertyCollection properties, TextWriter output ) : void

Writes a collection of vCard properties to an output text writer.

vCardImprovedWriter ( ) : System

Creates a new instance of the standard writer.

The standard writer is configured to create vCard files in the highest supported version. This is currently version 3.0.

Private Methods

Method Description
BuildProperties ( Thought.vCards.vCard card ) : vCardPropertyCollection

Builds a collection of standard properties based on the specified vCard.

BuildProperties_ADR ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds ADR properties.

BuildProperties_BDAY ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds the BDAY property.

BuildProperties_CATEGORIES ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_CLASS ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_EMAIL ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds EMAIL properties.

BuildProperties_FN ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_GEO ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds the GEO property.

BuildProperties_IMPP ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_KEY ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds KEY properties.

BuildProperties_LABEL ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_MAILER ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds the MAILER property.

BuildProperties_N ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_NAME ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_NICKNAME ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds the NICKNAME property.

BuildProperties_NOTE ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds the NOTE property.

BuildProperties_ORG ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds the ORG property.

BuildProperties_PHOTO ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_PRODID ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds PRODID properties.

BuildProperties_REV ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds the REV property.

BuildProperties_ROLE ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds the ROLE property.

BuildProperties_SOURCE ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds SOURCE properties.

BuildProperties_TEL ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Builds TEL properties.

BuildProperties_TITLE ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_TZ ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_UID ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_URL ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
BuildProperties_X_WAB_GENDER ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void

Method Details

EncodeBase64() public static method

Converts a byte to a BASE64 string.
public static EncodeBase64 ( byte value ) : string
value byte
return string

EncodeBase64() public static method

Converts an integer to a BASE64 string.
public static EncodeBase64 ( int value ) : string
value int
return string

EncodeEscaped() public method

Encodes a string using simple escape codes.
public EncodeEscaped ( string value ) : string
value string
return string

EncodeEscaped() public static method

Encodes a character array using simple escape sequences.
public static EncodeEscaped ( string value, char escaped ) : string
value string
escaped char
return string

EncodeProperty() public method

Returns property encoded into a standard vCard NAME:VALUE format.
public EncodeProperty ( Thought.vCards.vCardProperty property ) : string
property Thought.vCards.vCardProperty
return string

EncodeQuotedPrintable() public static method

Converts a string to quoted-printable format.
public static EncodeQuotedPrintable ( string value ) : string
value string /// The value to encode in Quoted Printable format. ///
return string

Write() public method

Writes a vCard to an output text writer.
public Write ( Thought.vCards.vCard card, TextWriter output ) : void
card Thought.vCards.vCard
output System.IO.TextWriter
return void

Write() public method

Writes a collection of vCard properties to an output text writer.
public Write ( vCardPropertyCollection properties, TextWriter output ) : void
properties vCardPropertyCollection
output System.IO.TextWriter
return void

vCardImprovedWriter() public method

Creates a new instance of the standard writer.
The standard writer is configured to create vCard files in the highest supported version. This is currently version 3.0.
public vCardImprovedWriter ( ) : System
return System