|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.syndication.fetcher.impl.SyndFeedInfo
A class to represent a SyndFeed
and some useful information about it.
| Field Summary | |
private ObjectBean |
_objBean
|
private String |
eTag
|
private String |
id
|
private Object |
lastModified
|
static long |
serialVersionUID
|
private SyndFeed |
syndFeed
|
private URL |
url
|
| Constructor Summary | |
SyndFeedInfo()
|
|
| Method Summary | |
Object |
clone()
Creates a deep 'bean' clone of the object. |
int |
compareTo(Object obj)
Compares this object with the specified object for order. |
boolean |
equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method. |
String |
getETag()
|
String |
getId()
|
Object |
getLastModified()
|
SyndFeed |
getSyndFeed()
|
URL |
getUrl()
|
int |
hashCode()
Returns a hashcode value for the object. |
private void |
readObject(ObjectInputStream in)
Deserializes this SyndFeedInfo object. |
void |
setETag(String string)
|
void |
setId(String string)
|
void |
setLastModified(Object o)
|
void |
setSyndFeed(SyndFeed feed)
|
void |
setUrl(URL url)
|
String |
toString()
Returns the String representation for the object. |
private void |
writeObject(ObjectOutputStream out)
Serializes this SyndFeedInfo object. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final long serialVersionUID
private ObjectBean _objBean
private String id
private URL url
private Object lastModified
private String eTag
private SyndFeed syndFeed
| Constructor Detail |
public SyndFeedInfo()
| Method Detail |
public Object clone()
throws CloneNotSupportedException
CloneNotSupportedException - thrown if an element of the object cannot be cloned.public boolean equals(Object other)
other - he reference object with which to compare.
public int hashCode()
It follows the contract defined by the Object hashCode() method.
public String toString()
public String getETag()
public Object getLastModified()
public URL getUrl()
public void setETag(String string)
public void setLastModified(Object o)
public void setUrl(URL url)
public SyndFeed getSyndFeed()
public void setSyndFeed(SyndFeed feed)
public String getId()
public void setId(String string)
string - A unique ID to identify the feed. Note that if the URL of the feed
changes this will remain the samepublic int compareTo(Object obj)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
In the foregoing description, the notation sgn(expression) designates the mathematical signum function, which is defined to return one of -1, 0, or 1 according to whether the value of expression is negative, zero or positive.
The implementor must ensure sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception iff y.compareTo(x) throws an exception.)
The implementor must also ensure that the relation is transitive: (x.compareTo(y)>0 && y.compareTo(z)>0) implies x.compareTo(z)>0.
Finally, the implementer must ensure that x.compareTo(y)==0 implies that sgn(x.compareTo(z)) == sgn(y.compareTo(z)), for all z.
It is strongly recommended, but not strictly required that (x.compareTo(y)==0) == (x.equals(y)). Generally speaking, any class that implements the Comparable interface and violates this condition should clearly indicate this fact. The recommended language is "Note: this class has a natural ordering that is inconsistent with equals."
compareTo in interface Comparableobj - the Object to be compared
ClassCastException - if the specified object's type prevents it
from being compared to this Object
private void writeObject(ObjectOutputStream out)
throws IOException
Serializes this SyndFeedInfo object. The enclosed
SyndFeed is serialized as separate xml file into the
default ConfigurationManager.DEFAULT_CACHE_DIRECTORY_KEY
using the getId() plus the .xml suffix as filename.
out - the ObjectOutputStream to be used for
serialization
IOException - if an io error occurred during serialization
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
Deserializes this SyndFeedInfo object. The enclosed
SyndFeed is deserialized from a separate xml file in
the default ConfigurationManager.DEFAULT_CACHE_DIRECTORY_KEY
denoted by getId() plus the .xml suffix.
in - the ObjectInputStream to be used for
deserialization
IOException - if an io error occurred during serialization
ClassNotFoundException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||