C# 클래스 Summer.Batch.Common.IO.FileSystemResource

Implementation of T:IResource for a file in the file system.
상속: Summer.Batch.Common.IO.AbstractResource
파일 보기 프로젝트 열기: SummerBatch/SummerBatch 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

CreateRelative() 공개 메소드

Creates a new resource relative to this resource.
public CreateRelative ( string relativePath ) : IResource
relativePath string a path relative to this resource
리턴 IResource

Exists() 공개 메소드

Checks if a resource actually exists.
public Exists ( ) : bool
리턴 bool

FileSystemResource() 공개 메소드

Constructs a new T:FileSystemResource for the given file info.
public FileSystemResource ( FileInfo fileInfo ) : System
fileInfo System.IO.FileInfo a file info
리턴 System

FileSystemResource() 공개 메소드

Constructs a new T:FileSystemResource for the given path.
public FileSystemResource ( string path ) : System
path string the path to the file to reference
리턴 System

GetDescription() 공개 메소드

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

GetFileInfo() 공개 메소드

public GetFileInfo ( ) : FileInfo
리턴 System.IO.FileInfo

GetFilename() 공개 메소드

Determines the filename for this resource.
public GetFilename ( ) : string
리턴 string

GetFullPath() 공개 메소드

Returns the full path for this resource.
public GetFullPath ( ) : string
리턴 string

GetInputStream() 공개 메소드

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
리턴 Stream

GetLastModified() 공개 메소드

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

GetUri() 공개 메소드

public GetUri ( ) : Uri
리턴 System.Uri