|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
This class represent a general text resource that may have been retrieved from any number of possible sources. *
Field Summary | |
---|---|
object |
data
Resource might require ancillary storage of some kind |
string |
encoding
Character encoding of this resource |
long |
lastModified
The file modification time (in milliseconds) for the cached template. |
long |
MILLIS_PER_SECOND
The number of milliseconds in a minute, used to calculate the check interval. |
long |
modificationCheckInterval
How often the file modification time is checked (in milliseconds). |
string |
name
Name of the resource |
long |
nextCheck
The next time the file modification time will be checked (in milliseconds). |
NVelocity.Runtime.Resource.Loader.ResourceLoader |
resourceLoader
The template loader that initially loaded the input stream for this template, and knows how to check the source of the input stream for modification. |
NVelocity.Runtime.RuntimeServices | rsvc |
Constructor Summary | |
---|---|
Resource() Default constructor |
Property Summary | |
---|---|
object | Data |
string | Encoding |
long | LastModified |
long | ModificationCheckInterval |
string | Name |
NVelocity.Runtime.Resource.Loader.ResourceLoader | ResourceLoader |
NVelocity.Runtime.RuntimeServices | RuntimeServices |
Method Summary | |
---|---|
bool | IsSourceModified() |
bool |
Process() Perform any subsequent processing that might need to be done by a resource. In the case of a template the actual parsing of the input stream needs to be performed. |
bool |
RequiresChecking() Is it time to check to see if the resource source has been updated? |
void |
Touch() 'Touch' this template and thereby resetting the nextCheck field. |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
protected internal object data
Resource might require ancillary storage of some kind
protected internal string encoding
Character encoding of this resource
protected internal long lastModified
The file modification time (in milliseconds) for the cached template.
protected internal long MILLIS_PER_SECOND
The number of milliseconds in a minute, used to calculate the check interval.
protected internal long modificationCheckInterval
How often the file modification time is checked (in milliseconds).
protected internal string name
Name of the resource
protected internal long nextCheck
The next time the file modification time will be checked (in milliseconds).
protected internal NVelocity.Runtime.Resource.Loader.ResourceLoader resourceLoader
The template loader that initially loaded the input stream for this template, and knows how to check the source of the input stream for modification.
protected internal NVelocity.Runtime.RuntimeServices rsvc
Constructor Detail |
---|
public Resource()
Default constructor
Property Detail |
---|
public object Data
public string Encoding
public long LastModified
public long ModificationCheckInterval
public string Name
public NVelocity.Runtime.Resource.Loader.ResourceLoader ResourceLoader
public NVelocity.Runtime.RuntimeServices RuntimeServices
Method Detail |
---|
public bool IsSourceModified()
public bool Process()
Perform any subsequent processing that might need to be done by a resource. In the case of a template the actual parsing of the input stream needs to be performed.
public bool RequiresChecking()
Is it time to check to see if the resource source has been updated?
public void Touch()
'Touch' this template and thereby resetting the nextCheck field.
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |