Basic implementation of IEntryFactory
More...
Basic implementation of IEntryFactory
◆ TimeSetting
Defines the possible values to be used for the ZipEntry.DateTime.
| Enumerator |
|---|
| LastWriteTime | Use the recorded LastWriteTime value for the file.
|
| LastWriteTimeUtc | Use the recorded LastWriteTimeUtc value for the file.
|
| CreateTime | Use the recorded CreateTime value for the file.
|
| CreateTimeUtc | Use the recorded CreateTimeUtc value for the file.
|
| LastAccessTime | Use the recorded LastAccessTime value for the file.
|
| LastAccessTimeUtc | Use the recorded LastAccessTimeUtc value for the file.
|
| Fixed | Use a fixed value.
The actual DateTime value used can be specified via the ZipEntryFactory(DateTime) constructor or using the ZipEntryFactory(TimeSetting) with the setting set to TimeSetting.Fixed which will use the DateTime when this class was constructed. The FixedDateTime property can also be used to set this value.
|
◆ ZipEntryFactory() [1/3]
| ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.ZipEntryFactory |
( |
| ) |
|
◆ ZipEntryFactory() [2/3]
| ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.ZipEntryFactory |
( |
TimeSetting | timeSetting | ) |
|
◆ ZipEntryFactory() [3/3]
| ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.ZipEntryFactory |
( |
DateTime | time | ) |
|
Initialise a new instance of ZipEntryFactory using the specified DateTime
- Parameters
-
◆ MakeDirectoryEntry() [1/2]
| ZipEntry ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.MakeDirectoryEntry |
( |
string | directoryName | ) |
|
◆ MakeDirectoryEntry() [2/2]
| ZipEntry ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.MakeDirectoryEntry |
( |
string | directoryName, |
|
|
bool | useFileSystem ) |
Make a new ZipEntry for a directory.
- Parameters
-
| directoryName | The raw untransformed name for the new directory |
| useFileSystem | If true entry detail is retrieved from the file system if the file exists. |
- Returns
- Returns a new ZipEntry representing a directory.
Implements ICSharpCode.SharpZipLib.Zip.IEntryFactory.
◆ MakeFileEntry() [1/2]
| ZipEntry ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.MakeFileEntry |
( |
string | fileName | ) |
|
◆ MakeFileEntry() [2/2]
| ZipEntry ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.MakeFileEntry |
( |
string | fileName, |
|
|
bool | useFileSystem ) |
Make a new ZipEntry from a name.
- Parameters
-
| fileName | The name of the file to create a new entry for. |
| useFileSystem | If true entry detail is retrieved from the file system if the file exists. |
- Returns
- Returns a new ZipEntry based on the fileName .
Implements ICSharpCode.SharpZipLib.Zip.IEntryFactory.
◆ fixedDateTime_
| DateTime ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.fixedDateTime_ = DateTime.Now |
|
private |
◆ getAttributes_
| int ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.getAttributes_ = -1 |
|
private |
◆ isUnicodeText_
| bool ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.isUnicodeText_ |
|
private |
◆ nameTransform_
| INameTransform ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.nameTransform_ |
|
private |
◆ setAttributes_
| int ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.setAttributes_ |
|
private |
◆ timeSetting_
| TimeSetting ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.timeSetting_ |
|
private |
◆ FixedDateTime
| DateTime ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.FixedDateTime |
|
getset |
◆ GetAttributes
| int ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.GetAttributes |
|
getset |
A bitmask defining the attributes to be retrieved from the actual file.
The default is to get all possible attributes from the actual file.
◆ IsUnicodeText
| bool ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.IsUnicodeText |
|
getset |
Get set a value indicating wether unidoce text should be set on.
◆ NameTransform
| INameTransform ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.NameTransform |
|
getset |
◆ SetAttributes
| int ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.SetAttributes |
|
getset |
A bitmask defining which attributes are to be set on.
By default no attributes are set on.
◆ Setting
| TimeSetting ICSharpCode.SharpZipLib.Zip.ZipEntryFactory.Setting |
|
getset |
The documentation for this class was generated from the following file: