Show / Hide Table of Contents

Class TarInputStream.EntryFactoryAdapter

Standard entry factory class creating instances of the class TarEntry

Inheritance
System.Object
TarInputStream.EntryFactoryAdapter
Implements
TarInputStream.IEntryFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ICSharpCode.SharpZipLib.Tar
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public class EntryFactoryAdapter : TarInputStream.IEntryFactory

Constructors

| Improve this Doc View Source

EntryFactoryAdapter()

Construct standard entry factory class with ASCII name encoding

Declaration
[Obsolete("No Encoding for Name field is specified, any non-ASCII bytes will be discarded")]
public EntryFactoryAdapter()
| Improve this Doc View Source

EntryFactoryAdapter(Encoding)

Construct standard entry factory with name encoding

Declaration
public EntryFactoryAdapter(Encoding nameEncoding)
Parameters
Type Name Description
System.Text.Encoding nameEncoding

The System.Text.Encoding used for the Name fields, or null for ASCII only

Methods

| Improve this Doc View Source

CreateEntry(Byte[])

Create an entry based on details in headerBuffer

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

The buffer containing entry details.

Returns
Type Description
TarEntry

A new TarEntry

| Improve this Doc View Source

CreateEntry(String)

Create a TarEntry based on named

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

The name to use for the entry

Returns
Type Description
TarEntry

A new TarEntry

| Improve this Doc View Source

CreateEntryFromFile(String)

Create a tar entry with details obtained from fileName

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

The name of the file to retrieve details from.

Returns
Type Description
TarEntry

A new TarEntry

Implements

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