Show / Hide Table of Contents

Interface IEntryFactory

Defines factory methods for creating new ZipEntry values.

Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public interface IEntryFactory

Properties

| Improve this Doc View Source

FixedDateTime

Get the System.DateTime value to use when Setting is set to Fixed, or if not specified, the value of System.DateTime.Now when the class was the initialized

Declaration
DateTime FixedDateTime { get; }
Property Value
Type Description
System.DateTime
| Improve this Doc View Source

NameTransform

Get/set the INameTransform applicable.

Declaration
INameTransform NameTransform { get; set; }
Property Value
Type Description
INameTransform
| Improve this Doc View Source

Setting

Get the ZipEntryFactory.TimeSetting in use.

Declaration
ZipEntryFactory.TimeSetting Setting { get; }
Property Value
Type Description
ZipEntryFactory.TimeSetting

Methods

| Improve this Doc View Source

MakeDirectoryEntry(String)

Create a ZipEntry for a directory given its name

Declaration
ZipEntry MakeDirectoryEntry(string directoryName)
Parameters
Type Name Description
System.String directoryName

The name of the directory to create an entry for.

Returns
Type Description
ZipEntry

Returns a directory entry based on the directoryName passed.

| Improve this Doc View Source

MakeDirectoryEntry(String, Boolean)

Create a ZipEntry for a directory given its name

Declaration
ZipEntry MakeDirectoryEntry(string directoryName, bool useFileSystem)
Parameters
Type Name Description
System.String directoryName

The name of the directory to create an entry for.

System.Boolean useFileSystem

If true get details from the file system for this directory if it exists.

Returns
Type Description
ZipEntry

Returns a directory entry based on the directoryName passed.

| Improve this Doc View Source

MakeFileEntry(String)

Create a ZipEntry for a file given its name

Declaration
ZipEntry MakeFileEntry(string fileName)
Parameters
Type Name Description
System.String fileName

The name of the file to create an entry for.

Returns
Type Description
ZipEntry

Returns a file entry based on the fileName passed.

| Improve this Doc View Source

MakeFileEntry(String, Boolean)

Create a ZipEntry for a file given its name

Declaration
ZipEntry MakeFileEntry(string fileName, bool useFileSystem)
Parameters
Type Name Description
System.String fileName

The name of the file to create an entry for.

System.Boolean useFileSystem

If true get details from the file system if the file exists.

Returns
Type Description
ZipEntry

Returns a file entry based on the fileName passed.

| Improve this Doc View Source

MakeFileEntry(String, String, Boolean)

Create a ZipEntry for a file given its actual name and optional override name

Declaration
ZipEntry MakeFileEntry(string fileName, string entryName, bool useFileSystem)
Parameters
Type Name Description
System.String fileName

The name of the file to create an entry for.

System.String entryName

An alternative name to be used for the new entry. Null if not applicable.

System.Boolean useFileSystem

If true get details from the file system if the file exists.

Returns
Type Description
ZipEntry

Returns a file entry based on the fileName passed.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors