com.yahoo.search.xmlparser
Class XmlParserCacheInfo

java.lang.Object
  extended by com.yahoo.search.xmlparser.XmlParserCacheInfo
All Implemented Interfaces:
CacheInfo

public class XmlParserCacheInfo
extends Object
implements CacheInfo


Constructor Summary
XmlParserCacheInfo(Map cache)
           
 
Method Summary
 String getSize()
          Size of the cached result, in bytes.
 String getUrl()
          The URL of the cached result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlParserCacheInfo

public XmlParserCacheInfo(Map cache)
Method Detail

getUrl

public String getUrl()
Description copied from interface: CacheInfo
The URL of the cached result.

Specified by:
getUrl in interface CacheInfo
Returns:
The URL of the cached result.

getSize

public String getSize()
Description copied from interface: CacheInfo
Size of the cached result, in bytes.

NOTE: The schema for web search indicates this field is a string. Do not assume this data will be numeric as it is perfectly valid for the search to return non-numeric contents.

Specified by:
getSize in interface CacheInfo
Returns:
Size of the cached result, in bytes.