C# Class ICSharpCode.SharpZipLib.Zip.ZipEntryFactory

Basic implementation of
Inheritance: IEntryFactory
Show file Open project: icsharpcode/SharpZipLib Class Usage Examples

Public Methods

Method Description
MakeDirectoryEntry ( string directoryName ) : ZipEntry

Make a new for a directory.

MakeDirectoryEntry ( string directoryName, bool useFileSystem ) : ZipEntry

Make a new for a directory.

MakeFileEntry ( string fileName ) : ZipEntry

Make a new ZipEntry for a file.

MakeFileEntry ( string fileName, bool useFileSystem ) : ZipEntry

Make a new ZipEntry for a file.

MakeFileEntry ( string fileName, string entryName, bool useFileSystem ) : ZipEntry

Make a new ZipEntry from a name.

ZipEntryFactory ( ) : System

Initialise a new instance of the ZipEntryFactory class.

A default INameTransform, and the LastWriteTime for files is used.

ZipEntryFactory ( DateTime time ) : System

Initialise a new instance of ZipEntryFactory using the specified DateTime

ZipEntryFactory ( TimeSetting timeSetting ) : System

Initialise a new instance of ZipEntryFactory using the specified TimeSetting

Method Details

MakeDirectoryEntry() public method

Make a new for a directory.
public MakeDirectoryEntry ( string directoryName ) : ZipEntry
directoryName string The raw untransformed name for the new directory
return ZipEntry

MakeDirectoryEntry() public method

Make a new for a directory.
public MakeDirectoryEntry ( string directoryName, bool useFileSystem ) : ZipEntry
directoryName string The raw untransformed name for the new directory
useFileSystem bool If true entry detail is retrieved from the file system if the file exists.
return ZipEntry

MakeFileEntry() public method

Make a new ZipEntry for a file.
public MakeFileEntry ( string fileName ) : ZipEntry
fileName string The name of the file to create a new entry for.
return ZipEntry

MakeFileEntry() public method

Make a new ZipEntry for a file.
public MakeFileEntry ( string fileName, bool useFileSystem ) : ZipEntry
fileName string The name of the file to create a new entry for.
useFileSystem bool If true entry detail is retrieved from the file system if the file exists.
return ZipEntry

MakeFileEntry() public method

Make a new ZipEntry from a name.
public MakeFileEntry ( string fileName, string entryName, bool useFileSystem ) : ZipEntry
fileName string The name of the file to create a new entry for.
entryName string An alternative name to be used for the new entry. Null if not applicable.
useFileSystem bool If true entry detail is retrieved from the file system if the file exists.
return ZipEntry

ZipEntryFactory() public method

Initialise a new instance of the ZipEntryFactory class.
A default INameTransform, and the LastWriteTime for files is used.
public ZipEntryFactory ( ) : System
return System

ZipEntryFactory() public method

Initialise a new instance of ZipEntryFactory using the specified DateTime
public ZipEntryFactory ( DateTime time ) : System
time DateTime The time to set all values to.
return System

ZipEntryFactory() public method

Initialise a new instance of ZipEntryFactory using the specified TimeSetting
public ZipEntryFactory ( TimeSetting timeSetting ) : System
timeSetting TimeSetting The time setting to use when creating Zip entries.
return System