Class FileLocatorFactory
A factory to create a file locator.
Inherited Members
Namespace: JeremyAnsel.IO.Locator
Assembly: JeremyAnsel.IO.Locator.dll
Syntax
public static class FileLocatorFactory
Remarks
The supported formats are: file system, Zip, Rar, Tar, 7Zip, GZip.
Methods
| Edit this page View SourceCreate(IFileLocator?, string?)
Creates a file locator from a file locator.
Declaration
public static IFileLocator Create(IFileLocator? locator, string? root)
Parameters
Type | Name | Description |
---|---|---|
IFileLocator | locator | The source file locator. |
string | root | The root path. |
Returns
Type | Description |
---|---|
IFileLocator | A file locator. |
Create(Stream?)
Creates a file locator from a stream.
Declaration
public static IFileLocator Create(Stream? root)
Parameters
Type | Name | Description |
---|---|---|
Stream | root | A stream. |
Returns
Type | Description |
---|---|
IFileLocator | A file locator. |
Create(string?)
Creates a file locator.
Declaration
public static IFileLocator Create(string? root)
Parameters
Type | Name | Description |
---|---|---|
string | root | The root path. |
Returns
Type | Description |
---|---|
IFileLocator | A file locator. |