C# Class Onism.Cldr.CldrData

Mostra file Open project: pgolebiowski/onism-cldr

Private Properties

Property Type Description

Public Methods

Method Description
GetValue ( string path, CldrLocale locale ) : string

Traverses the CLDR tree using a path and gets the value associated with the specified locale.

LoadFromFile ( string path ) : CldrData

Creates a new CldrData instance from a binary file.

LoadFromStream ( Stream source ) : CldrData

Creates a new CldrData instance from a binary stream.

WriteToFile ( string path ) : void

Writes a binary representation of this CldrData to the specified file.

WriteToStream ( Stream destination ) : void

Writes a binary representation of this CldrData to the supplied stream.

Method Details

GetValue() public method

Traverses the CLDR tree using a path and gets the value associated with the specified locale.
public GetValue ( string path, CldrLocale locale ) : string
path string
locale CldrLocale
return string

LoadFromFile() public static method

Creates a new CldrData instance from a binary file.
public static LoadFromFile ( string path ) : CldrData
path string A relative or absolute path to the file where data is to be deserialized from.
return CldrData

LoadFromStream() public static method

Creates a new CldrData instance from a binary stream.
public static LoadFromStream ( Stream source ) : CldrData
source System.IO.Stream The binary stream to apply to the new instance (cannot be null).
return CldrData

WriteToFile() public method

Writes a binary representation of this CldrData to the specified file.
public WriteToFile ( string path ) : void
path string A relative or absolute path to the file where data is to be serialized to.
return void

WriteToStream() public method

Writes a binary representation of this CldrData to the supplied stream.
public WriteToStream ( Stream destination ) : void
destination System.IO.Stream The destination stream to write to.
return void