|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.search.AbstractSearchResult org.xnap.plugin.gift.net.GiFTSearchResult
public class GiFTSearchResult
GiFTSearchResult
Metainfo for mp3: - album - artist - duration - bitrate - frequency - title - tracknumber
Field Summary |
---|
Fields inherited from interface org.xnap.search.SearchResult |
---|
BITRATE, FREQUENCY, HIDE_PREFIX, LENGTH, MD5, SHA1, URN |
Constructor Summary | |
---|---|
GiFTSearchResult(GiFTDaemon daemon,
long size,
Peer user,
java.lang.String filename,
java.lang.String hash,
java.lang.String node,
java.lang.String mime,
java.lang.String url,
int score,
java.util.Hashtable meta)
Constructor for GiFTSearchResult. |
Method Summary | |
---|---|
boolean |
canGroup(SearchResult result)
Returns true, if this object and result can be grouped
together. |
SearchResultContainer |
createContainer()
Creates a group root that has this object's properties. |
javax.swing.Action[] |
getActions()
Returns the actions for this search result. |
int |
getAvailability()
Returns a score between 1 and 255. |
java.lang.String |
getFilename()
Returns the full filename. |
long |
getFilesize()
Returns the filesize. |
java.lang.Object |
getHash()
Used for grouping of results. |
javax.swing.Icon |
getIcon()
Returns null. |
java.lang.String |
getMimeType()
Returns the mime-type. |
java.lang.String |
getNode()
Returns the node. |
Peer |
getPeer()
Returns the peer that offer this result for download. |
Plugin |
getPlugin()
Returns the originating plugin. |
java.lang.String |
getUrl()
Returns the url. |
Methods inherited from class org.xnap.search.AbstractSearchResult |
---|
get, getPath, getShortFilename, getSourcesCount, keys, put |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GiFTSearchResult(GiFTDaemon daemon, long size, Peer user, java.lang.String filename, java.lang.String hash, java.lang.String node, java.lang.String mime, java.lang.String url, int score, java.util.Hashtable meta)
size
- user
- filename
- hash
- node
- mime
- url
- score
- meta
- Method Detail |
---|
public java.lang.String getMimeType()
public java.lang.String getNode()
public java.lang.String getUrl()
public boolean canGroup(SearchResult result)
SearchResult
result
can be grouped
together.
xnap.search.SearchResult#canGroup(xnap.search.SearchResult)
public SearchResultContainer createContainer()
SearchResult
xnap.search.SearchResult#createContainer()
public javax.swing.Action[] getActions()
SearchResult
xnap.search.SearchResult#getActions()
public int getAvailability()
SearchResult
xnap.search.SearchResult#getAvailability()
public java.lang.String getFilename()
SearchResult
SearchFilter
for
matching.
xnap.search.SearchResult#getFilename()
public long getFilesize()
SearchResult
xnap.search.SearchResult#getFilesize()
public javax.swing.Icon getIcon()
AbstractSearchResult
getIcon
in interface SearchResult
getIcon
in class AbstractSearchResult
public Peer getPeer()
SearchResult
xnap.search.SearchResult#getPeer()
public Plugin getPlugin()
SearchResult
xnap.search.SearchResult#getPlugin()
public java.lang.Object getHash()
SearchResult
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |