C# Class Summer.Batch.Common.IO.FileSystemResource

Implementation of T:IResource for a file in the file system.
Inheritance: Summer.Batch.Common.IO.AbstractResource
Afficher le fichier Open project: SummerBatch/SummerBatch Class Usage Examples

Méthodes publiques

Méthode Description
CreateRelative ( string relativePath ) : IResource

Creates a new resource relative to this resource.

Exists ( ) : bool

Checks if a resource actually exists.

FileSystemResource ( FileInfo fileInfo ) : System

Constructs a new T:FileSystemResource for the given file info.

FileSystemResource ( string path ) : System

Constructs a new T:FileSystemResource for the given path.

GetDescription ( ) : string

Computes a literal description for this resource. Implementations are encouraged to return this value for their ToString() method.

GetFileInfo ( ) : FileInfo
GetFilename ( ) : string

Determines the filename for this resource.

GetFullPath ( ) : string

Returns the full path for this resource.

GetInputStream ( ) : Stream

Opens a new read T:System.IO.Stream for the underlying resource. Each call is expected to return a new instance.

GetLastModified ( ) : System.DateTime

Determines when this resource was last modified.

GetUri ( ) : Uri

Method Details

CreateRelative() public méthode

Creates a new resource relative to this resource.
public CreateRelative ( string relativePath ) : IResource
relativePath string a path relative to this resource
Résultat IResource

Exists() public méthode

Checks if a resource actually exists.
public Exists ( ) : bool
Résultat bool

FileSystemResource() public méthode

Constructs a new T:FileSystemResource for the given file info.
public FileSystemResource ( FileInfo fileInfo ) : System
fileInfo System.IO.FileInfo a file info
Résultat System

FileSystemResource() public méthode

Constructs a new T:FileSystemResource for the given path.
public FileSystemResource ( string path ) : System
path string the path to the file to reference
Résultat System

GetDescription() public méthode

Computes a literal description for this resource. Implementations are encouraged to return this value for their ToString() method.
public GetDescription ( ) : string
Résultat string

GetFileInfo() public méthode

public GetFileInfo ( ) : FileInfo
Résultat System.IO.FileInfo

GetFilename() public méthode

Determines the filename for this resource.
public GetFilename ( ) : string
Résultat string

GetFullPath() public méthode

Returns the full path for this resource.
public GetFullPath ( ) : string
Résultat string

GetInputStream() public méthode

Opens a new read T:System.IO.Stream for the underlying resource. Each call is expected to return a new instance.
if the stream cannot be open
public GetInputStream ( ) : Stream
Résultat Stream

GetLastModified() public méthode

Determines when this resource was last modified.
if the resource cannot be resolved
public GetLastModified ( ) : System.DateTime
Résultat System.DateTime

GetUri() public méthode

public GetUri ( ) : Uri
Résultat System.Uri