C# Class JinianNet.JNTemplate.Resources

资源操作
Datei anzeigen Open project: jiniannet/jntemplate

Public Methods

Method Description
FindPath ( IEnumerable paths, String filename, String &fullPath ) : Int32

查找指定文件

FindPath ( String filename, String &fullPath ) : Int32

查找指定文件

IsLocalPath ( String path ) : System.Boolean

是否本地路径表达形式

Load ( IEnumerable paths, String filename, Encoding encoding ) : String

加载资源

Load ( IEnumerable paths, String filename, Encoding encoding, String &fullName ) : String

根据文件名(允许有相对路径)查找并读取文件

Load ( String filename, Encoding encoding ) : String

加载资源

LoadResource ( String fullPath, Encoding encoding ) : String

载入文件

MergerPaths ( IEnumerable oldPaths ) : IEnumerable

合并集合

NormalizePath ( String filename ) : String

路径处理

Method Details

FindPath() public static method

查找指定文件
public static FindPath ( IEnumerable paths, String filename, String &fullPath ) : Int32
paths IEnumerable 检索路径
filename String 文件名 允许相对路径.路径分隔符只能使用/
fullPath String 查找结果:完整路径
return System.Int32

FindPath() public static method

查找指定文件
public static FindPath ( String filename, String &fullPath ) : Int32
filename String 文件名 允许相对路径.路径分隔符只能使用/
fullPath String 查找结果:完整路径
return System.Int32

IsLocalPath() public static method

是否本地路径表达形式
public static IsLocalPath ( String path ) : System.Boolean
path String 路径
return System.Boolean

Load() public static method

加载资源
public static Load ( IEnumerable paths, String filename, Encoding encoding ) : String
paths IEnumerable 检索路径
filename String 文件名
encoding System.Text.Encoding 编码
return String

Load() public static method

根据文件名(允许有相对路径)查找并读取文件
public static Load ( IEnumerable paths, String filename, Encoding encoding, String &fullName ) : String
paths IEnumerable 检索目录
filename String 文件名
encoding System.Text.Encoding 编码
fullName String 完整路径
return String

Load() public static method

加载资源
public static Load ( String filename, Encoding encoding ) : String
filename String 文件名
encoding System.Text.Encoding 编码
return String

LoadResource() public static method

载入文件
public static LoadResource ( String fullPath, Encoding encoding ) : String
fullPath String 完整文件路径
encoding System.Text.Encoding 编码
return String

MergerPaths() public static method

合并集合
public static MergerPaths ( IEnumerable oldPaths ) : IEnumerable
oldPaths IEnumerable 原路径集合
return IEnumerable

NormalizePath() public static method

路径处理
public static NormalizePath ( String filename ) : String
filename String 待处理文件
return String