Show / Hide Table of Contents

Interface TarInputStream.IEntryFactory

This interface is provided, along with the method SetEntryFactory(TarInputStream.IEntryFactory), to allow the programmer to have their own TarEntry subclass instantiated for the entries return from GetNextEntry().

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

Methods

| Improve this Doc View Source

CreateEntry(Byte[])

Create a tar entry based on the header information passed

Declaration
TarEntry CreateEntry(byte[] headerBuffer)
Parameters
Type Name Description
System.Byte[] headerBuffer

Buffer containing header information to create an entry from.

Returns
Type Description
TarEntry

Created TarEntry or descendant class

| Improve this Doc View Source

CreateEntry(String)

Create an entry based on name alone

Declaration
TarEntry CreateEntry(string name)
Parameters
Type Name Description
System.String name

Name of the new EntryPointNotFoundException to create

Returns
Type Description
TarEntry

created TarEntry or descendant class

| Improve this Doc View Source

CreateEntryFromFile(String)

Create an instance based on an actual file

Declaration
TarEntry CreateEntryFromFile(string fileName)
Parameters
Type Name Description
System.String fileName

Name of file to represent in the entry

Returns
Type Description
TarEntry

Created TarEntry or descendant class

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