📄 peerbinaryid.html
字号:
<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> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="PeerBinaryID(java.lang.String)"><!-- --></A><H3>PeerBinaryID</H3><PRE>protected <B>PeerBinaryID</B>(java.lang.String id)</PRE><DL><DD>Creates a ID from a string. Note that the ID is not currently validated.<P><DT><B>Parameters:</B><DD><CODE>id</CODE> - Value of ID.</DL><HR><A NAME="PeerBinaryID(net.jxta.impl.id.binaryID.BinaryID)"><!-- --></A><H3>PeerBinaryID</H3><PRE>public <B>PeerBinaryID</B>(<A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A> binaryID)</PRE><DL><DD>Creates a new PeerID object.<P><DT><B>Parameters:</B><DD><CODE>binaryID</CODE> - binary id to build the peerID from.</DL><HR><A NAME="PeerBinaryID(net.jxta.peergroup.PeerGroupID, byte[], boolean)"><!-- --></A><H3>PeerBinaryID</H3><PRE>public <B>PeerBinaryID</B>(<A HREF="../../../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup">PeerGroupID</A> parent, byte[] data, boolean lengthIncluded)</PRE><DL><DD>Constructor. Creates a PeerID. A PeerGroupID and BinaryID is provided. If the binary ID is not a pipe ID, the construcion will throw a runtime exception.<p> Note that only the ID for the parent is obtained and not the parent and the grandparent.<P><DT><B>Parameters:</B><DD><CODE>parent</CODE> - the group to which this will belong.<DD><CODE>data</CODE> - data byte array to be used as the id.<DD><CODE>lengthIncluded</CODE> - If true, the first byte in the data array is the length of the remaining bytes.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object target)</PRE><DL><DD><P><DD><DL></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD><P><DD><DL></DL></DD></DL><HR><A NAME="getIDFormat()"><!-- --></A><H3>getIDFormat</H3><PRE>public java.lang.String <B>getIDFormat</B>()</PRE><DL><DD>Returns a string identifier which indicates which ID format is used by this ID instance.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/id/ID.html#getIDFormat()">getIDFormat</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string identifier which indicates which ID format is used by this ID instance.</DL></DD></DL><HR><A NAME="getUniqueValue()"><!-- --></A><H3>getUniqueValue</H3><PRE>public java.lang.Object <B>getUniqueValue</B>()</PRE><DL><DD>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>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/id/ID.html#getUniqueValue()">getUniqueValue</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Object which can provide canonical representations of the ID.</DL></DD></DL><HR><A NAME="getURL()"><!-- --></A><H3>getURL</H3><PRE>public java.net.URL <B>getURL</B>()</PRE><DL><DD>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.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/id/ID.html#getURL()">getURL</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>URL Object containing the URI<DT><B>See Also:</B><DD><CODE>URL</CODE>, <A HREF="../../../../../net/jxta/id/IDFactory.html#fromURL(java.net.URL)"><CODE>IDFactory.fromURL( java.net.URL )</CODE></A></DL></DD></DL><HR><A NAME="getPeerGroupID()"><!-- --></A><H3>getPeerGroupID</H3><PRE>public <A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> <B>getPeerGroupID</B>()</PRE><DL><DD>Returns PeerGroupID of the Peer Group to which this Peer ID belongs.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/peer/PeerID.html#getPeerGroupID()">getPeerGroupID</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>PeerGroupID of the Peer Group which this ID is part of.</DL></DD></DL><HR><A NAME="getID()"><!-- --></A><H3>getID</H3><PRE>protected java.lang.String <B>getID</B>()</PRE><DL><DD>returns the coded ID without the binaryid tag.<P><DD><DL><DT><B>Returns:</B><DD>The raw ID.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PeerBinaryID.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../net/jxta/impl/id/binaryID/ModuleSpecBinaryID.html" title="class in net.jxta.impl.id.binaryID"><B>PREV CLASS</B></A> <A HREF="../../../../../net/jxta/impl/id/binaryID/PeerGroupBinaryID.html" title="class in net.jxta.impl.id.binaryID"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="PeerBinaryID.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_net.jxta.id.ID">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -