C# Class FileSplitter.FileSplitWorker

File Splitter class. This class does all the calculations and the splitting operations
Renamed class to prevent conflicts and prevent having to use global::
Show file Open project: dubasdey/File-Splitter Class Usage Examples

Public Methods

Method Description
doSplit ( ) : void

Do split operation

Private Methods

Method Description
getNextFileName ( System.Int64 actualFileNumber ) : String

Generates and registers next file name in the correct destination folder

onFinish ( ) : void

Launch splitEnd event

onMessage ( ExceptionMessage msg ) : void

Launch Split Message event

onProcessing ( String filename, System.Int64 part, System.Int64 partSizeWritten, System.Int64 totalParts, System.Int64 partSize ) : void

Launch splitProcess event

onStart ( ) : void

Launch splitStart event

registerCreatedFile ( String fileName ) : void

Adds the file name to the log file

splitByLines ( String inputFileName, System.Int64 sourceFileSize ) : void

Split file by number of lines

splitBySize ( String inputFileName, System.Int64 sourceFileSize ) : void

Split by size

Method Details

doSplit() public method

Do split operation
public doSplit ( ) : void
return void