C# 클래스 NVelocity.Runtime.Resource.Loader.AssemblyRelativeResourceLoader

상속: ResourceLoader
파일 보기 프로젝트 열기: rasmus-toftdahl-olesen/NVelocity

공개 메소드들

메소드 설명
GetLastModified ( Util.Resource resource ) : long

Get the last modified time of the InputStream source that was used to create the template. We need the template here because we have to extract the name of the template in order to locate the InputStream source.

GetResourceStream ( String templateName ) : Stream

Get the InputStream that the Runtime will parse to create a template.

Init ( ExtendedProperties configuration ) : void

Initialize the template loader with a a resources class.

IsSourceModified ( Util.Resource resource ) : bool

Given a template, check to see if the source of InputStream has been modified.

메소드 상세

GetLastModified() 공개 메소드

Get the last modified time of the InputStream source that was used to create the template. We need the template here because we have to extract the name of the template in order to locate the InputStream source.
public GetLastModified ( Util.Resource resource ) : long
resource Util.Resource
리턴 long

GetResourceStream() 공개 메소드

Get the InputStream that the Runtime will parse to create a template.
public GetResourceStream ( String templateName ) : Stream
templateName String
리턴 Stream

Init() 공개 메소드

Initialize the template loader with a a resources class.
public Init ( ExtendedProperties configuration ) : void
configuration Commons.Collections.ExtendedProperties
리턴 void

IsSourceModified() 공개 메소드

Given a template, check to see if the source of InputStream has been modified.
public IsSourceModified ( Util.Resource resource ) : bool
resource Util.Resource
리턴 bool