⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 codatid.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected </CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/UUID/CodatID.html#CodatID(net.jxta.impl.id.UUID.UUID, net.jxta.impl.id.UUID.UUID)">CodatID</A></B>(<A HREF="../../../../../net/jxta/impl/id/UUID/UUID.html" title="class in net.jxta.impl.id.UUID">UUID</A>&nbsp;groupUUID,        <A HREF="../../../../../net/jxta/impl/id/UUID/UUID.html" title="class in net.jxta.impl.id.UUID">UUID</A>&nbsp;idUUID)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/UUID/CodatID.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;target)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/UUID/CodatID.html#getIDFormat()">getIDFormat</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string identifier which indicates which ID format is  used by this ID instance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/UUID/CodatID.html#getPeerGroupID()">getPeerGroupID</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns PeerGroupID of the Peer Group to which this Codat ID belongs.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/UUID/CodatID.html#getUniqueValue()">getUniqueValue</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an object containing the unique value of the ID. This object must  provide implementations of toString() and hashCode() that are canonical  and consistent from run-to-run given the same input values. Beyond  this nothing should be assumed about the nature of this object. For some  implementations the object returned may be <code>this</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.net.URL</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/UUID/CodatID.html#getURL()">getURL</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a URI (URL in Java nomenclature) representation of the ID. <CODE>URLs</CODE> are the prefered way of externalizing and  presenting JXTA IDs. The <A HREF="../../../../../net/jxta/id/IDFactory.html" title="class in net.jxta.id"><CODE>JXTA ID Factory</CODE></A>  can be used to construct ID Objects from URLs containing JXTA IDs.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/UUID/CodatID.html#hashCode()">hashCode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/UUID/CodatID.html#isStatic()">isStatic</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this CodatID is associated with a static Codat.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/UUID/CodatID.html#setHash(java.io.InputStream)">setHash</A></B>(java.io.InputStream&nbsp;in)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates the SHA-1 hash of a stream.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.id.ID"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.id.<A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../net/jxta/id/ID.html#clone()">clone</A>, <A HREF="../../../../../net/jxta/id/ID.html#toString()">toString</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="hashSize"><!-- --></A><H3>hashSize</H3><PRE>protected static final int <B>hashSize</B></PRE><DL><DD>size of a SHA1 hash. I would use MessageDigest.getDigestLength, but possible exceptions make it difficult to do.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.jxta.impl.id.UUID.CodatID.hashSize">Constant Field Values</A></DL></DL><HR><A NAME="groupIdOffset"><!-- --></A><H3>groupIdOffset</H3><PRE>protected static final int <B>groupIdOffset</B></PRE><DL><DD>Location of the group id in the byte array.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.jxta.impl.id.UUID.CodatID.groupIdOffset">Constant Field Values</A></DL></DL><HR><A NAME="idOffset"><!-- --></A><H3>idOffset</H3><PRE>protected static final int <B>idOffset</B></PRE><DL><DD>Location of the randomly chosen portion of the id within the byte array.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.jxta.impl.id.UUID.CodatID.idOffset">Constant Field Values</A></DL></DL><HR><A NAME="codatHashOffset"><!-- --></A><H3>codatHashOffset</H3><PRE>protected static final int <B>codatHashOffset</B></PRE><DL><DD>Location of the hash value portion of the id within the byte array.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.jxta.impl.id.UUID.CodatID.codatHashOffset">Constant Field Values</A></DL></DL><HR><A NAME="padOffset"><!-- --></A><H3>padOffset</H3><PRE>protected static final int <B>padOffset</B></PRE><DL><DD>Location of the begining of pad (unused space) within the byte array.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.jxta.impl.id.UUID.CodatID.padOffset">Constant Field Values</A></DL></DL><HR><A NAME="padSize"><!-- --></A><H3>padSize</H3><PRE>protected static final int <B>padSize</B></PRE><DL><DD>Size of the pad.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.jxta.impl.id.UUID.CodatID.padSize">Constant Field Values</A></DL></DL><HR><A NAME="id"><!-- --></A><H3>id</H3><PRE>protected <A HREF="../../../../../net/jxta/impl/id/UUID/IDBytes.html" title="class in net.jxta.impl.id.UUID">IDBytes</A> <B>id</B></PRE><DL><DD>The id data<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="CodatID()"><!-- --></A><H3>CodatID</H3><PRE>protected <B>CodatID</B>()</PRE><DL><DD>Internal constructor<P></DL><HR><A NAME="CodatID(net.jxta.impl.id.UUID.IDBytes)"><!-- --></A><H3>CodatID</H3><PRE>protected <B>CodatID</B>(<A HREF="../../../../../net/jxta/impl/id/UUID/IDBytes.html" title="class in net.jxta.impl.id.UUID">IDBytes</A>&nbsp;id)</PRE><DL><DD>Intializes contents from provided bytes.<P><DT><B>Parameters:</B><DD><CODE>id</CODE> - the ID data</DL><HR><A NAME="CodatID(net.jxta.impl.id.UUID.UUID, net.jxta.impl.id.UUID.UUID)"><!-- --></A><H3>CodatID</H3><PRE>protected <B>CodatID</B>(<A HREF="../../../../../net/jxta/impl/id/UUID/UUID.html" title="class in net.jxta.impl.id.UUID">UUID</A>&nbsp;groupUUID,                  <A HREF="../../../../../net/jxta/impl/id/UUID/UUID.html" title="class in net.jxta.impl.id.UUID">UUID</A>&nbsp;idUUID)</PRE><DL></DL><HR><A NAME="CodatID(net.jxta.impl.id.UUID.PeerGroupID)"><!-- --></A><H3>CodatID</H3><PRE>public <B>CodatID</B>(<A HREF="../../../../../net/jxta/impl/id/UUID/PeerGroupID.html" title="class in net.jxta.impl.id.UUID">PeerGroupID</A>&nbsp;groupID)</PRE><DL><DD>See <A HREF="../../../../../net/jxta/id/IDFactory.Instantiator.html#newCodatID(net.jxta.peergroup.PeerGroupID)"><CODE>IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID)</CODE></A>.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -