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 SourceCreateEntry(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 |
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 |
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 |