C# Class NScumm.FileStorage

Inheritance: IFileStorage
Mostrar archivo Open project: scemino/nscumm

Public Methods

Method Description
ChangeExtension ( string path, string newExtension ) : string
Combine ( string path1, string path2 ) : string
DirectoryExists ( string path ) : bool
EnumerateFiles ( string path ) : IEnumerable
EnumerateFiles ( string path, string searchPattern ) : IEnumerable
EnumerateFiles ( string path, string searchPattern, Core option ) : IEnumerable
EnumerateFiles ( string path ) : System.Collections.Generic.IEnumerable
EnumerateFiles ( string path, string searchPattern ) : System.Collections.Generic.IEnumerable
EnumerateFiles ( string path, string searchPattern, NScumm option ) : System.Collections.Generic.IEnumerable
FileExists ( string path ) : bool
GetDirectoryName ( string path ) : string
GetExtension ( string path ) : string
GetFileName ( string path ) : string
GetFileNameWithoutExtension ( string path ) : string
GetSignature ( string path ) : string
LoadDocument ( Stream stream ) : System.Xml.Linq.XDocument
OpenContent ( string path ) : Stream
OpenFileRead ( string path ) : Stream
OpenFileWrite ( string path ) : Stream
ReadAllBytes ( string filename ) : byte[]

Private Methods

Method Description
WildcardToRegex ( string pattern ) : string

Method Details

ChangeExtension() public method

public ChangeExtension ( string path, string newExtension ) : string
path string
newExtension string
return string

Combine() public method

public Combine ( string path1, string path2 ) : string
path1 string
path2 string
return string

DirectoryExists() public method

public DirectoryExists ( string path ) : bool
path string
return bool

EnumerateFiles() public method

public EnumerateFiles ( string path ) : IEnumerable
path string
return IEnumerable

EnumerateFiles() public method

public EnumerateFiles ( string path, string searchPattern ) : IEnumerable
path string
searchPattern string
return IEnumerable

EnumerateFiles() public method

public EnumerateFiles ( string path, string searchPattern, Core option ) : IEnumerable
path string
searchPattern string
option Core
return IEnumerable

EnumerateFiles() public method

public EnumerateFiles ( string path ) : System.Collections.Generic.IEnumerable
path string
return System.Collections.Generic.IEnumerable

EnumerateFiles() public method

public EnumerateFiles ( string path, string searchPattern ) : System.Collections.Generic.IEnumerable
path string
searchPattern string
return System.Collections.Generic.IEnumerable

EnumerateFiles() public method

public EnumerateFiles ( string path, string searchPattern, NScumm option ) : System.Collections.Generic.IEnumerable
path string
searchPattern string
option NScumm
return System.Collections.Generic.IEnumerable

FileExists() public method

public FileExists ( string path ) : bool
path string
return bool

GetDirectoryName() public method

public GetDirectoryName ( string path ) : string
path string
return string

GetExtension() public method

public GetExtension ( string path ) : string
path string
return string

GetFileName() public method

public GetFileName ( string path ) : string
path string
return string

GetFileNameWithoutExtension() public method

public GetFileNameWithoutExtension ( string path ) : string
path string
return string

GetSignature() public method

public GetSignature ( string path ) : string
path string
return string

LoadDocument() public method

public LoadDocument ( Stream stream ) : System.Xml.Linq.XDocument
stream Stream
return System.Xml.Linq.XDocument

OpenContent() public method

public OpenContent ( string path ) : Stream
path string
return Stream

OpenFileRead() public method

public OpenFileRead ( string path ) : Stream
path string
return Stream

OpenFileWrite() public method

public OpenFileWrite ( string path ) : Stream
path string
return Stream

ReadAllBytes() public method

public ReadAllBytes ( string filename ) : byte[]
filename string
return byte[]