Class WritableFileLocatorFactory
A factory to create a writable file locator.
The supported formats are: file system, Zip, Tar, GZip.
Inherited Members
Namespace: JeremyAnsel.IO.Locator
Assembly: JeremyAnsel.IO.Locator.dll
Syntax
public static class WritableFileLocatorFactory
Methods
| Edit this page View SourceCreate(string?)
Creates a writable file locator.
Declaration
public static IWritableFileLocator Create(string? root)
Parameters
Type | Name | Description |
---|---|---|
string | root | The root path. |
Returns
Type | Description |
---|---|
IWritableFileLocator | A writable file locator. |
CreateArchive(Stream?, ArchiveType)
Creates a writable file locator for an archive from a stream.
Declaration
public static IWritableFileLocator CreateArchive(Stream? root, ArchiveType archiveType)
Parameters
Type | Name | Description |
---|---|---|
Stream | root | A stream. |
ArchiveType | archiveType | The archive type. |
Returns
Type | Description |
---|---|
IWritableFileLocator | A writable file locator. |
CreateArchive(Stream?, ArchiveType, CompressionType)
Creates a writable file locator for an archive from a stream.
Declaration
public static IWritableFileLocator CreateArchive(Stream? root, ArchiveType archiveType, CompressionType compressionType)
Parameters
Type | Name | Description |
---|---|---|
Stream | root | A stream |
ArchiveType | archiveType | The archive type. |
CompressionType | compressionType | The compression type. |
Returns
Type | Description |
---|---|
IWritableFileLocator | A writable file locator. |
CreateArchive(string?, ArchiveType)
Creates a writable file locator for an archive.
Declaration
public static IWritableFileLocator CreateArchive(string? root, ArchiveType archiveType)
Parameters
Type | Name | Description |
---|---|---|
string | root | The root path. |
ArchiveType | archiveType | The archive type. |
Returns
Type | Description |
---|---|
IWritableFileLocator | A writable file locator. |
CreateArchive(string?, ArchiveType, CompressionType)
Creates a writable file locator for an archive.
Declaration
public static IWritableFileLocator CreateArchive(string? root, ArchiveType archiveType, CompressionType compressionType)
Parameters
Type | Name | Description |
---|---|---|
string | root | The root path. |
ArchiveType | archiveType | The archive type. |
CompressionType | compressionType | The compression type. |
Returns
Type | Description |
---|---|
IWritableFileLocator | A writable file locator. |