FileSplitterSplit(Int64, String, String, Boolean, Boolean) Method
Splits a file into chunks of the specified filesize.
Namespace: DevCase.Core.IO.FileSystemAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public virtual void Split(
long chunkSize,
string chunkName = "",
string chunkExt = "",
bool overwrite = false,
bool deleteAfterSplit = false
)
Public Overridable Sub Split (
chunkSize As Long,
Optional chunkName As String = "",
Optional chunkExt As String = "",
Optional overwrite As Boolean = false,
Optional deleteAfterSplit As Boolean = false
)
Dim instance As FileSplitter
Dim chunkSize As Long
Dim chunkName As String
Dim chunkExt As String
Dim overwrite As Boolean
Dim deleteAfterSplit As Boolean
instance.Split(chunkSize, chunkName, chunkExt,
overwrite, deleteAfterSplit)
public:
virtual void Split(
long long chunkSize,
String^ chunkName = L"",
String^ chunkExt = L"",
bool overwrite = false,
bool deleteAfterSplit = false
)
abstract Split :
chunkSize : int64 *
?chunkName : string *
?chunkExt : string *
?overwrite : bool *
?deleteAfterSplit : bool
(* Defaults:
let _chunkName = defaultArg chunkName ""
let _chunkExt = defaultArg chunkExt ""
let _overwrite = defaultArg overwrite false
let _deleteAfterSplit = defaultArg deleteAfterSplit false
*)
-> unit
override Split :
chunkSize : int64 *
?chunkName : string *
?chunkExt : string *
?overwrite : bool *
?deleteAfterSplit : bool
(* Defaults:
let _chunkName = defaultArg chunkName ""
let _chunkExt = defaultArg chunkExt ""
let _overwrite = defaultArg overwrite false
let _deleteAfterSplit = defaultArg deleteAfterSplit false
*)
-> unit
No code example is currently available or this language may not be supported.
Parameters
- chunkSize Int64
-
The size per chunk, in bytes.
- chunkName String (Optional)
-
The name-format for the generated chunks.
- chunkExt String (Optional)
-
The file-extension of the generated chunks.
- overwrite Boolean (Optional)
-
If set to , any existing file will be overwritten if needed to create a chunk,
otherwise, an exception will be thrown.
- deleteAfterSplit Boolean (Optional)
-
If set to , the source file will be deleted after a successful split operation.
FileNotFoundException
|
The specified source file doesn't exists.
|
IOException
|
File already exists.
|
OverflowException
|
'chunkSize' value should be smaller than the source filesize.
|