C# Class FileSplitter.Utils

Show file Open project: dubasdey/File-Splitter

Public Methods

Method Description
GetFileEncoding ( string srcFile ) : Encoding

Detects the byte order mark of a file and returns an appropriate encoding for the file.

getMessageIcon ( ExceptionMessage msg ) : MessageBoxIcon
getMessageText ( ExceptionMessage msg ) : String
unitConverter ( System.Int64 items, SplitUnit units ) : System.Int64

Unit order converter

Method Details

GetFileEncoding() public static method

Detects the byte order mark of a file and returns an appropriate encoding for the file.
public static GetFileEncoding ( string srcFile ) : Encoding
srcFile string
return System.Text.Encoding

getMessageIcon() public static method

public static getMessageIcon ( ExceptionMessage msg ) : MessageBoxIcon
msg ExceptionMessage
return MessageBoxIcon

getMessageText() public static method

public static getMessageText ( ExceptionMessage msg ) : String
msg ExceptionMessage
return String

unitConverter() public static method

Unit order converter
public static unitConverter ( System.Int64 items, SplitUnit units ) : System.Int64
items System.Int64
units SplitUnit Kind of split unit to use
return System.Int64