?? idfactory.html
字號:
<A NAME="newPeerGroupID(net.jxta.peergroup.PeerGroupID, byte[])"><!-- --></A><H3>newPeerGroupID</H3><PRE>public static <A HREF="../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup">PeerGroupID</A> <B>newPeerGroupID</B>(<A HREF="../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup">PeerGroupID</A> parent, byte[] seed)</PRE><DL><DD>Creates a new PeerGroupID instance with the specified parent group. A new PeerGroupID will be generated using the provided seed information. <p/>This method allows you to create "Well-known" PeerGroupIDs. This is similar to how the JXTA "World Peer Group" and "Net Peer Group". "Well-known" IDs can be useful for common services that need to do discovery without advertisements or for network organization services. Because of the potential for ID collisions and the difficulties with maintaining common service interfaces this varient of PeerGroupID should be used with great caution and pre-planning.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - The group which will be the parent of this group.<DD><CODE>seed</CODE> - The seed information which will be used in creating the PeerGroupID. The seed information should be at least four bytes in length, though longer values are better.<DT><B>Returns:</B><DD>The newly created PeerGroupID.<DT><B>See Also:</B><DD><A HREF="../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup"><CODE>PeerGroupID</CODE></A>, <A HREF="../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup"><CODE>PeerGroup</CODE></A></DL></DD></DL><HR><A NAME="newPipeID(net.jxta.peergroup.PeerGroupID)"><!-- --></A><H3>newPipeID</H3><PRE>public static <A HREF="../../../net/jxta/pipe/PipeID.html" title="class in net.jxta.pipe">PipeID</A> <B>newPipeID</B>(<A HREF="../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup">PeerGroupID</A> groupID)</PRE><DL><DD>Creates a new PipeID instance. A new random PipeID will be generated.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>groupID</CODE> - The group to which this Pipe ID will belong.<DT><B>Returns:</B><DD>The newly created PipeID.<DT><B>See Also:</B><DD><A HREF="../../../net/jxta/pipe/PipeID.html" title="class in net.jxta.pipe"><CODE>PipeID</CODE></A></DL></DD></DL><HR><A NAME="newPipeID(net.jxta.peergroup.PeerGroupID, byte[])"><!-- --></A><H3>newPipeID</H3><PRE>public static <A HREF="../../../net/jxta/pipe/PipeID.html" title="class in net.jxta.pipe">PipeID</A> <B>newPipeID</B>(<A HREF="../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup">PeerGroupID</A> groupID, byte[] seed)</PRE><DL><DD>Creates a new PipeID instance. A new pipe id will be generated with the provided seed information. The Pipe ID will be a member of the provided group. <p/>This varient of PipeID allows you to create "Well-known" pipes within the context of diverse groups. This can be useful for common services that need to do discovery without advertisements or for network organization services. Because of the potential for ID collisions and the difficulties with maintaining common service interfaces this varient of PipeID should be used with great caution and pre-planning.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>groupID</CODE> - the group to which this Pipe ID will belong.<DD><CODE>seed</CODE> - The seed information which will be used in creating the pipeID. The seed information should be at least four bytes in length, though longer values are better.<DT><B>Returns:</B><DD>the newly created PipeID.<DT><B>See Also:</B><DD><A HREF="../../../net/jxta/pipe/PipeID.html" title="class in net.jxta.pipe"><CODE>PipeID</CODE></A></DL></DD></DL><HR><A NAME="newModuleClassID()"><!-- --></A><H3>newModuleClassID</H3><PRE>public static <A HREF="../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A> <B>newModuleClassID</B>()</PRE><DL><DD>Creates a new ModuleClassID instance. A new random ModuleClassID will be generated with a zero value role identifier. This form of ModuleClassID is appropriate for cases where the module does not need to be distinguished from other instances of the same Module. The ModuleClassID will be created using the default ID Format.<P><DD><DL><DT><B>Returns:</B><DD>The newly created ModuleClassID.<DT><B>See Also:</B><DD><A HREF="../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform"><CODE>ModuleClassID</CODE></A>, <A HREF="../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform"><CODE>Module</CODE></A></DL></DD></DL><HR><A NAME="newModuleClassID(java.lang.String)"><!-- --></A><H3>newModuleClassID</H3><PRE>public static <A HREF="../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A> <B>newModuleClassID</B>(java.lang.String idformat)</PRE><DL><DD>Creates a new ModuleClassID instance using the specified ID Format. A new random ModuleClassID will be generated with a zero value role identifier. This form of ModuleClassID is appropriate for cases where the module does not need to be distinguished from other instances of the same Module.<P><DD><DL><DT><B>Returns:</B><DD>The newly created ModuleClassID.<DT><B>See Also:</B><DD><A HREF="../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform"><CODE>ModuleClassID</CODE></A>, <A HREF="../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform"><CODE>Module</CODE></A></DL></DD></DL><HR><A NAME="newModuleClassID(net.jxta.platform.ModuleClassID)"><!-- --></A><H3>newModuleClassID</H3><PRE>public static <A HREF="../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A> <B>newModuleClassID</B>(<A HREF="../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A> baseClass)</PRE><DL><DD>Creates a new ModuleClassID instance. A new random ModuleClassID will be generated with a a random value role identifier and a base class of the provided ModuleClassID. This form of ModuleClassID is appropriate for cases where it is necessary to distinguish instances of the same service interface.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>baseClass</CODE> - The ModuleClassID which will be used as a base class for this new role value instance.<DT><B>Returns:</B><DD>The newly created ModuleClassID.<DT><B>See Also:</B><DD><A HREF="../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform"><CODE>ModuleClassID</CODE></A>, <A HREF="../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform"><CODE>Module</CODE></A></DL></DD></DL><HR><A NAME="newModuleSpecID(net.jxta.platform.ModuleClassID)"><!-- --></A><H3>newModuleSpecID</H3><PRE>public static <A HREF="../../../net/jxta/platform/ModuleSpecID.html" title="class in net.jxta.platform">ModuleSpecID</A> <B>newModuleSpecID</B>(<A HREF="../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A> baseClass)</PRE><DL><DD>Creates a new ModuleSpecID instance. A new random ModuleSpecID will be generated.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>baseClass</CODE> - The ModuleClassID which will be used as a base class for this new ModuleSpecID.<DT><B>Returns:</B><DD>The newly created ModuleSpecID.<DT><B>See Also:</B><DD><A HREF="../../../net/jxta/platform/ModuleSpecID.html" title="class in net.jxta.platform"><CODE>ModuleSpecID</CODE></A>, <A HREF="../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform"><CODE>Module</CODE></A></DL></DD></DL><HR><A NAME="jxtaURL(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>jxtaURL</H3><PRE>public static java.net.URL <B>jxtaURL</B>(java.lang.String protocol, java.lang.String host, java.lang.String file) throws java.net.MalformedURLException</PRE><DL><DD>This method should be used instead of using <code>new java.net.URL( )</code> to create URLs for use with IDFactory. URL construction can cause classes to be loaded using the system classLoader (JXTA IDs require the class <code>sun.net.www.protocol.urn.Handler</code> for Sun JVMs). This class loading will fail in many enviroments such as web-servers, servlet containers, application servers, or java web start where a user class loader is used to load all JXTA resources.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>protocol</CODE> - The protocol for this URL<DD><CODE>host</CODE> - The host for this URL<DD><CODE>file</CODE> - The file for this URL<DT><B>Returns:</B><DD>a newly created URL for the resource specified.<DT><B>Throws:</B><DD><CODE>java.net.MalformedURLException</CODE> - if an unknown protocol is specified.</DL></DD></DL><HR><A NAME="jxtaURL(java.lang.String)"><!-- --></A><H3>jxtaURL</H3><PRE>public static java.net.URL <B>jxtaURL</B>(java.lang.String uri) throws java.net.MalformedURLException</PRE><DL><DD>This method should be used instead of using <code>new java.net.URL( )</code> to create URLs for use with IDFactory. URL construction can cause classes to be loaded using the system classLoader (JXTA IDs require the class <code>sun.net.www.protocol.urn.Handler</code> for Sun JVMs). This class loading will fail in many enviroments such as web-servers, servlet containers, application servers, or java web start where a user class loader is used to load all JXTA resources.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>uri</CODE> - the <code>String</code> to parse as a URL.<DT><B>Returns:</B><DD>a newly created URL for the resource specified.<DT><B>Throws:</B><DD><CODE>java.net.MalformedURLException</CODE> - if an unknown protocol is specified.</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/IDFactory.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/id/ID.html" title="class in net.jxta.id"><B>PREV CLASS</B></A> <A HREF="../../../net/jxta/id/NullID.html" title="class in net.jxta.id"><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="IDFactory.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: <A HREF="#nested_class_summary">NESTED</A> | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -