?? pipeservice.html
字號:
createOutputPipe</H3><PRE>public <A HREF="../../../net/jxta/pipe/OutputPipe.html" title="interface in net.jxta.pipe">OutputPipe</A> <B>createOutputPipe</B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> adv, java.util.Enumeration resolvablePeers, long timeout) throws java.io.IOException</PRE><DL><DD><B>Deprecated.</B> <I>Use <A HREF="../../../net/jxta/pipe/PipeService.html#createOutputPipe(net.jxta.protocol.PipeAdvertisement, java.util.Set, long)"><CODE>createOutputPipe(PipeAdvertisement, Set, long)</CODE></A> instead.</I><P><DD>Attempt to ceate an OutputPipe using the specified Pipe Advertisement. The pipe will be be resolved to one of the peers in the set of peer ids provided within the provided timeout.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - The advertisement of the pipe being resolved.<DD><CODE>resolvablePeers</CODE> - The non-empty enumeration of peers on which the pipe may be resolved. All elements of the enumeration <strong>must</strong> must be of type <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer"><CODE>PeerID</CODE></A>.<DD><CODE>timeout</CODE> - time duration in milliseconds to wait for a successful pipe resolution. <code>0</code> will wait indefinitely. All negative values will cause a wait of an inplementation defined non-infinite value. (this behaviour is deprecated and may eventually disappear).<DT><B>Returns:</B><DD>OutputPipe the successfully resolved OutputPipe.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If the pipe cannot be created or failed to resolve within the specified time.</DL></DD></DL><HR><A NAME="createOutputPipe(net.jxta.protocol.PipeAdvertisement, java.util.Set, long)"><!-- --></A><H3>createOutputPipe</H3><PRE>public <A HREF="../../../net/jxta/pipe/OutputPipe.html" title="interface in net.jxta.pipe">OutputPipe</A> <B>createOutputPipe</B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> adv, java.util.Set resolvablePeers, long timeout) throws java.io.IOException</PRE><DL><DD>Attempt to ceate an OutputPipe using the specified Pipe Advertisement. The pipe will be be resolved to one of the peers in the set of peer ids provided within the provided timeout.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - The advertisement of the pipe being resolved.<DD><CODE>resolvablePeers</CODE> - The set of peers on which the pipe may be resolved. All elements of the set <strong>must</strong> must be of type <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer"><CODE>PeerID</CODE></A>. <strong>If the Set is empty then the pipe may be resolved to any destination peer.</strong><DD><CODE>timeout</CODE> - time duration in milliseconds to wait for a successful pipe resolution. <code>0</code> will wait indefinitely. All negative values will cause a wait of an inplementation defined non-infinite value. (this behaviour is deprecated and may eventually disappear).<DT><B>Returns:</B><DD>OutputPipe the successfully resolved OutputPipe.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If the pipe cannot be created or failed to resolve within the specified time.</DL></DD></DL><HR><A NAME="createOutputPipe(net.jxta.protocol.PipeAdvertisement, net.jxta.pipe.OutputPipeListener)"><!-- --></A><H3>createOutputPipe</H3><PRE>public void <B>createOutputPipe</B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> adv, <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A> listener) throws java.io.IOException</PRE><DL><DD>Attempt to ceate an OutputPipe using the specified Pipe Advertisement. The pipe may be resolved to any destination peer. When the pipe is resolved the listener will be called.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - The advertisement of the pipe being resolved.<DD><CODE>listener</CODE> - the listener to be called when the pipe is resolved.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If the pipe cannot be created.</DL></DD></DL><HR><A NAME="createOutputPipe(net.jxta.protocol.PipeAdvertisement, net.jxta.peer.PeerID, net.jxta.pipe.OutputPipeListener)"><!-- --></A><H3>createOutputPipe</H3><PRE>public void <B>createOutputPipe</B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> adv, <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> peerid, <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A> listener) throws java.io.IOException</PRE><DL><DD><B>Deprecated.</B> <I>Use <A HREF="../../../net/jxta/pipe/PipeService.html#createOutputPipe(net.jxta.protocol.PipeAdvertisement, java.util.Set, long)"><CODE>createOutputPipe(PipeAdvertisement, Set, long)</CODE></A> with a <CODE>Collections.singleton(Object)</CODE> instead.</I><P><DD>Attempt to ceate an OutputPipe using the specified Pipe Advertisement. When the pipe is resolved to the peer id provided the listener will be called.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - The advertisement of the pipe being resolved.<DD><CODE>peerid</CODE> - The peer id of the peer on which on which the pipe may be resolved. All elements of the enumeration <strong>must</strong> must be of type <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer"><CODE>PeerID</CODE></A>.<DD><CODE>listener</CODE> - the listener to be called when the pipe is resolved.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If the pipe cannot be created.</DL></DD></DL><HR><A NAME="createOutputPipe(net.jxta.protocol.PipeAdvertisement, java.util.Set, net.jxta.pipe.OutputPipeListener)"><!-- --></A><H3>createOutputPipe</H3><PRE>public void <B>createOutputPipe</B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> pipeAdv, java.util.Set resolvablePeers, <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A> listener) throws java.io.IOException</PRE><DL><DD>Attempt to ceate an OutputPipe using the specified Pipe Advertisement. When the pipe is resolved to one of the peers in the set of peer ids provided the listener will be called.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pipeAdv</CODE> - The advertisement of the pipe being resolved.<DD><CODE>resolvablePeers</CODE> - The set of peers on which the pipe may be resolved. All elements of the set <strong>must</strong> must be of type <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer"><CODE>PeerID</CODE></A>. <strong>If the Set is empty then the pipe may be resolved to any destination peer.</strong><DD><CODE>listener</CODE> - the listener to be called when the pipe is resolved.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If the pipe cannot be created.</DL></DD></DL><HR><A NAME="createMessage()"><!-- --></A><H3>createMessage</H3><PRE>public <A HREF="../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> <B>createMessage</B>()</PRE><DL><DD><B>Deprecated.</B> <I>Use new <A HREF="../../../net/jxta/endpoint/Message.html#Message()"><CODE>Message.Message()</CODE></A> instead.</I><P><DD>Creates a new Message for sending via this Pipe Service.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A newly allocated Message.</DL></DD></DL><HR><A NAME="removeOutputPipeListener(java.lang.String, net.jxta.pipe.OutputPipeListener)"><!-- --></A><H3>removeOutputPipeListener</H3><PRE>public <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A> <B>removeOutputPipeListener</B>(java.lang.String pipeID, <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A> listener)</PRE><DL><DD>Remove an OutputPipeListener previously registered with <code>createOuputputPipe</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pipeID</CODE> - listener to remove<DD><CODE>listener</CODE> - listener to remove<DT><B>Returns:</B><DD>the listener which was removed or null if the key did not have a mapping.</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/PipeService.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/pipe/PipeMsgListener.html" title="interface in net.jxta.pipe"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="PipeService.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="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -