Class TarInputStream.EntryFactoryAdapter
Standard entry factory class creating instances of the class TarEntry
Inheritance
System.Object
TarInputStream.EntryFactoryAdapter
Implements
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 SourceEntryFactoryAdapter()
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()
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 SourceCreateEntry(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 |
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 |
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 |