|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
A single resource
Field Summary | |
---|---|
long | byteLength |
Naanou.Common.FileCategory | category |
string | contentsHash |
string |
DateTimeFormat
Date time format to use |
Naanou.ResourceExchange.DownloaderQueue | downloaders |
string | filename |
string |
LastModified
Last modified time stamp in Naanou.ResourceExchange.Entry.DateTimeFormat format. |
Naanou.Common.Metadata[] | metadata |
Constructor Summary | |
---|---|
Entry() Used by Serializer |
|
Entry(System.IO.FileInfo file) Constructor |
|
Entry(string filename, string hash, long length, string lastModified, Naanou.Common.Metadata[] metadata, Naanou.Common.FileCategory category) Constructor |
Property Summary | |
---|---|
long |
ByteLength
Length of file |
Naanou.Common.FileCategory | Category |
string |
ContentsHash
Hash of contents |
string |
Downloaders
Gets a space-delimited list of recent downloaders |
string |
Filename
Filename |
bool |
HasBeenModified
Checks whether file has been modified since it was last indexed |
System.DateTime |
LastModifiedTime
Gets the timestamp recorded for a file when it was indexed |
Naanou.Common.Metadata[] |
Metadata
Gets a copy of, or sets the metadata associated with this entry |
Method Summary | |
---|---|
void |
AddDownloader(string address) Adds a downloader in id|url form |
Naanou.ResourceExchange.Entry |
CloneForPublishing() Clones an entry to be published |
void | GetCategory() |
string |
ToString() Gets a string representation of entry |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone |
Field Detail |
---|
private long byteLength
private Naanou.Common.FileCategory category
private string contentsHash
public string DateTimeFormat
Date time format to use
private Naanou.ResourceExchange.DownloaderQueue downloaders
private string filename
public string LastModified
Last modified time stamp in Naanou.ResourceExchange.Entry.DateTimeFormat format.
private Naanou.Common.Metadata[] metadata
Constructor Detail |
---|
private Entry()
Used by Serializer
public Entry(System.IO.FileInfo file)
Constructor
Parameters:
file
- File to parseinternal Entry(string filename, string hash, long length, string lastModified, Naanou.Common.Metadata[] metadata, Naanou.Common.FileCategory category)
Constructor
Parameters:
filename
- Filenamehash
- Content hashlength
- Length (bytes)lastModified
- Last modified time stampmetadata
- MetadataProperty Detail |
---|
public long ByteLength
Length of file
public Naanou.Common.FileCategory Category
public string ContentsHash
Hash of contents
public string Downloaders
Gets a space-delimited list of recent downloaders
public string Filename
Filename
public bool HasBeenModified
Checks whether file has been modified since it was last indexed
public System.DateTime LastModifiedTime
Gets the timestamp recorded for a file when it was indexed
public Naanou.Common.Metadata[] Metadata
Gets a copy of, or sets the metadata associated with this entry
Method Detail |
---|
public void AddDownloader(string address)
Adds a downloader in id|url form
Parameters:
address
- public Naanou.ResourceExchange.Entry CloneForPublishing()
Clones an entry to be published
Returns:
private void GetCategory()
public string ToString()
Gets a string representation of entry
Returns:
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |