C# Class FiftyOne.Foundation.Mobile.Detection.Factories.TrieFactory

Reader used to create a provider from data structured in a decision tree format.
Datei anzeigen Open project: 51Degrees/dotNET-Device-Detection

Public Methods

Method Description
Create ( byte array ) : TrieProvider

Creates a new provider from the byte array supplied.

Create ( string file ) : TrieProvider

Creates a new provider from the binary file supplied.

Create ( string file, bool isTempFile ) : TrieProvider

Creates a new provider from the binary file supplied.

Private Methods

Method Description
Create ( Pool pool ) : TrieProvider
ReadDevices ( BinaryReader reader ) : byte[]
ReadHeaders ( BinaryReader reader ) : byte[]
ReadLookupList ( BinaryReader reader ) : byte[]
ReadProperties ( BinaryReader reader ) : byte[]
ReadStrings ( BinaryReader reader ) : byte[]

Method Details

Create() public static method

Creates a new provider from the byte array supplied.
public static Create ( byte array ) : TrieProvider
array byte
return TrieProvider

Create() public static method

Creates a new provider from the binary file supplied.
public static Create ( string file ) : TrieProvider
file string Binary file to use to create the provider.
return TrieProvider

Create() public static method

Creates a new provider from the binary file supplied.
public static Create ( string file, bool isTempFile ) : TrieProvider
file string Binary file to use to create the provider.
isTempFile bool True if the file should be deleted when the source is disposed
return TrieProvider