Méthode | Description | |
---|---|---|
CheckForTextualData ( byte rawData ) : bool |
Detects if contains textual data.
|
|
CheckForTextualData ( byte rawData, int start, int count ) : bool |
Detects if contains textual data.
|
|
Complete ( ) : |
Finalize detection phase and gets detected encoding name.
|
|
Detect ( Stream inputData ) : string |
Detects the encoding of textual data of the specified input data.
|
|
Detect ( byte inputData, int start, int count ) : string |
Detects the encoding of textual data of the specified input data.
|
|
DetectFileEncoding ( Stream inputStream, |
Tries to detect the file encoding.
|
|
DetectFileEncoding ( byte inputData, int start, int count, |
Tries to detect the file encoding.
|
|
DetectFileEncoding ( string inputFilename, |
Tries to detect the file encoding.
|
|
Reset ( ) : void |
Resets this instance.
|
|
TryLoadFile ( string filename, string defaultValue = "" ) : string |
Tries to load file content with the correct encoding.
|
Méthode | Description | |
---|---|---|
CheckForByteOrderMark ( byte rawData, int start ) : bool |
Detects if data has bytes order mark to indicate its encoding for textual data.
|
public static CheckForTextualData ( byte rawData ) : bool | ||
rawData | byte | The raw data. |
Résultat | bool |
public static CheckForTextualData ( byte rawData, int start, int count ) : bool | ||
rawData | byte | The raw data. |
start | int | The start. |
count | int | The count. |
Résultat | bool |
public Detect ( Stream inputData ) : string | ||
inputData | Stream | The input data. |
Résultat | string |
public Detect ( byte inputData, int start, int count ) : string | ||
inputData | byte | The input data. |
start | int | The start. |
count | int | The count. |
Résultat | string |
public static DetectFileEncoding ( Stream inputStream, |
||
inputStream | Stream | The input stream. |
defaultIfNotDetected | The default encoding if none was detected. | |
Résultat |
public static DetectFileEncoding ( byte inputData, int start, int count, |
||
inputData | byte | The input data. |
start | int | The start. |
count | int | The count. |
defaultIfNotDetected | The default encoding if none was detected. | |
Résultat |
public static DetectFileEncoding ( string inputFilename, |
||
inputFilename | string | The input filename. |
defaultIfNotDetected | The default encoding if none was detected. | |
Résultat |
public static TryLoadFile ( string filename, string defaultValue = "" ) : string | ||
filename | string | The filename. |
defaultValue | string | The default value if unable to load file content. |
Résultat | string |