C# Class Illumina.TerminalVelocity.LargeFileDownloadParameters

Inheritance: ILargeFileDownloadParameters
显示文件 Open project: basespace/TerminalVelocity

Public Methods

Method Description
EnsureCleanFile ( string filePath, bool deleteIfExists ) : void
GetOutputStream ( ) : Stream
LargeFileDownloadParameters ( Uri uri, string outputFile, int maxThreads, int maxChunkSize, string id = null ) : System
LargeFileDownloadParameters ( Uri uri, string outputFile, long fileSize, int maxThreads, int maxChunkSize, string id = null ) : System
LargeFileDownloadParameters ( Uri uri, string outputFile, long fileSize, string id = null, int maxThreads = 16, int maxChunkSize = DEFAULT_MAX_CHUNK_SIZE, bool autoCloseStream = true, bool verifyLength = true ) : System

Protected Methods

Method Description
CreateOutputStream ( string filePath, long fileLength, bool deleteIfExists = false ) : FileStream
GetFileSizeFromSource ( Uri uri ) : long

Method Details

CreateOutputStream() protected static method

protected static CreateOutputStream ( string filePath, long fileLength, bool deleteIfExists = false ) : FileStream
filePath string
fileLength long
deleteIfExists bool
return System.IO.FileStream

EnsureCleanFile() public static method

public static EnsureCleanFile ( string filePath, bool deleteIfExists ) : void
filePath string
deleteIfExists bool
return void

GetFileSizeFromSource() protected static method

protected static GetFileSizeFromSource ( Uri uri ) : long
uri System.Uri
return long

GetOutputStream() public method

public GetOutputStream ( ) : Stream
return Stream

LargeFileDownloadParameters() public method

public LargeFileDownloadParameters ( Uri uri, string outputFile, int maxThreads, int maxChunkSize, string id = null ) : System
uri System.Uri
outputFile string
maxThreads int
maxChunkSize int
id string
return System

LargeFileDownloadParameters() public method

public LargeFileDownloadParameters ( Uri uri, string outputFile, long fileSize, int maxThreads, int maxChunkSize, string id = null ) : System
uri System.Uri
outputFile string
fileSize long
maxThreads int
maxChunkSize int
id string
return System

LargeFileDownloadParameters() public method

public LargeFileDownloadParameters ( Uri uri, string outputFile, long fileSize, string id = null, int maxThreads = 16, int maxChunkSize = DEFAULT_MAX_CHUNK_SIZE, bool autoCloseStream = true, bool verifyLength = true ) : System
uri System.Uri
outputFile string
fileSize long
id string
maxThreads int
maxChunkSize int
autoCloseStream bool
verifyLength bool
return System