JXTA

net.jxta.share
Class ContentIdImpl

java.lang.Object
  |
  +--net.jxta.share.ContentIdImpl

public class ContentIdImpl
extends java.lang.Object
implements net.jxta.share.ContentId

ContentId implementation based on MD5 digest algorithm.

See Also:
Serialized Form

Constructor Summary
ContentIdImpl(java.io.InputStream is)
           
ContentIdImpl(java.lang.String s)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if this content id is equal to the specified object.
 int hashCode()
          Returns the hash code for this content id.
 java.lang.String toString()
          Returns the string representation of this content id.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentIdImpl

public ContentIdImpl(java.lang.String s)

ContentIdImpl

public ContentIdImpl(java.io.InputStream is)
              throws java.io.IOException
Method Detail

hashCode

public int hashCode()
Returns the hash code for this content id.
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Returns true if this content id is equal to the specified object.
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Returns the string representation of this content id.
Overrides:
toString in class java.lang.Object

JXTA