Implementation of T:IResource for a file in the file system. More...
Public Member Functions | |
FileSystemResource (FileInfo fileInfo) | |
Constructs a new T:FileSystemResource for the given file info. More... | |
override string | GetFullPath () |
Returns the full path for this resource. More... | |
FileSystemResource (string path) | |
Constructs a new T:FileSystemResource for the given path. More... | |
override bool | Exists () |
Checks if a resource actually exists. More... | |
override Stream | GetInputStream () |
Opens a new read T:System.IO.Stream for the underlying resource. Each call is expected to return a new instance. More... | |
override Uri | GetUri () |
| |
override FileInfo | GetFileInfo () |
| |
override string | GetFilename () |
Determines the filename for this resource. More... | |
override DateTime | GetLastModified () |
Determines when this resource was last modified. More... | |
override string | GetDescription () |
Computes a literal description for this resource. Implementations are encouraged to return this value for their ToString() method. More... | |
override IResource | CreateRelative (string relativePath) |
Creates a new resource relative to this resource. More... | |
Public Member Functions inherited from Summer.Batch.Common.IO.AbstractResource | |
override string | ToString () |
ToString override. More... | |
override bool | Equals (object obj) |
Equals override. More... | |
override int | GetHashCode () |
GetHashCode override. More... | |
Detailed Description
Implementation of T:IResource for a file in the file system.
Constructor & Destructor Documentation
Summer.Batch.Common.IO.FileSystemResource.FileSystemResource | ( | FileInfo | fileInfo | ) |
Constructs a new T:FileSystemResource for the given file info.
- Parameters
-
fileInfo a file info
Summer.Batch.Common.IO.FileSystemResource.FileSystemResource | ( | string | path | ) |
Constructs a new T:FileSystemResource for the given path.
- Parameters
-
path the path to the file to reference
Member Function Documentation
|
virtual |
Creates a new resource relative to this resource.
- Parameters
-
relativePath a path relative to this resource
- Returns
- a resource for the given path
Reimplemented from Summer.Batch.Common.IO.AbstractResource.
|
virtual |
Checks if a resource actually exists.
- Returns
true
if the underlying resource exists,false
otherwise
Implements Summer.Batch.Common.IO.AbstractResource.
|
virtual |
Computes a literal description for this resource. Implementations are encouraged to return this value for their ToString() method.
- Returns
- a string describing the resource
Implements Summer.Batch.Common.IO.AbstractResource.
|
virtual |
Determines the filename for this resource.
- Returns
- the filename for this resource, or
null
if it does not have one
Reimplemented from Summer.Batch.Common.IO.AbstractResource.
|
virtual |
Returns the full path for this resource.
- Returns
Implements Summer.Batch.Common.IO.AbstractResource.
|
virtual |
Opens a new read T:System.IO.Stream for the underlying resource. Each call is expected to return a new instance.
- Returns
- a T:System.IO.Stream for reading the underlying resource (cannot be null)
- Exceptions
-
T:System.IO.IOException if the stream cannot be open
Implements Summer.Batch.Common.IO.AbstractResource.
|
virtual |
Determines when this resource was last modified.
- Returns
- a T:System.DateTime for the last modification
- Exceptions
-
T:System.IO.IOException if the resource cannot be resolved
Implements Summer.Batch.Common.IO.AbstractResource.
The documentation for this class was generated from the following file:
- Summer.Batch.Common/IO/FileSystemResource.cs