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

📄 pipeservice.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD><CODE><B><A HREF="../../../net/jxta/pipe/PipeService.html#createOutputPipe(net.jxta.protocol.PipeAdvertisement, net.jxta.pipe.OutputPipeListener)">createOutputPipe</A></B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A>&nbsp;adv,                 <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempt to ceate an OutputPipe using the specified Pipe Advertisement. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../net/jxta/pipe/OutputPipe.html" title="interface in net.jxta.pipe">OutputPipe</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/pipe/PipeService.html#createOutputPipe(net.jxta.protocol.PipeAdvertisement, net.jxta.peer.PeerID, long)">createOutputPipe</A></B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A>&nbsp;adv,                 <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A>&nbsp;peerid,                 long&nbsp;timeout)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/pipe/PipeService.html#createOutputPipe(net.jxta.protocol.PipeAdvertisement, net.jxta.peer.PeerID, net.jxta.pipe.OutputPipeListener)">createOutputPipe</A></B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A>&nbsp;adv,                 <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A>&nbsp;peerid,                 <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../net/jxta/pipe/OutputPipe.html" title="interface in net.jxta.pipe">OutputPipe</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/pipe/PipeService.html#createOutputPipe(net.jxta.protocol.PipeAdvertisement, java.util.Set, long)">createOutputPipe</A></B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A>&nbsp;adv,                 java.util.Set&nbsp;resolvablePeers,                 long&nbsp;timeout)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempt to ceate an OutputPipe using the specified Pipe Advertisement. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/pipe/PipeService.html#createOutputPipe(net.jxta.protocol.PipeAdvertisement, java.util.Set, net.jxta.pipe.OutputPipeListener)">createOutputPipe</A></B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A>&nbsp;pipeAdv,                 java.util.Set&nbsp;resolvablePeers,                 <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempt to ceate an OutputPipe using the specified Pipe Advertisement. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/jxta/pipe/PipeService.html#removeOutputPipeListener(java.lang.String, net.jxta.pipe.OutputPipeListener)">removeOutputPipeListener</A></B>(java.lang.String&nbsp;pipeID,                         <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove an OutputPipeListener previously registered with  <code>createOuputputPipe</code>.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.service.Service"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface net.jxta.service.<A HREF="../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../net/jxta/service/Service.html#getImplAdvertisement()">getImplAdvertisement</A>, <A HREF="../../../net/jxta/service/Service.html#getInterface()">getInterface</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.platform.Module"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface net.jxta.platform.<A HREF="../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform">Module</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../net/jxta/platform/Module.html#init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)">init</A>, <A HREF="../../../net/jxta/platform/Module.html#startApp(java.lang.String[])">startApp</A>, <A HREF="../../../net/jxta/platform/Module.html#stopApp()">stopApp</A></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="UnicastType"><!-- --></A><H3>UnicastType</H3><PRE>public static final java.lang.String <B>UnicastType</B></PRE><DL><DD>Unicast, unreliable and unsecure type of Pipe<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.pipe.PipeService.UnicastType">Constant Field Values</A></DL></DL><HR><A NAME="PropagateType"><!-- --></A><H3>PropagateType</H3><PRE>public static final java.lang.String <B>PropagateType</B></PRE><DL><DD>Propagated, unsecure and unreliable type of Pipe<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.pipe.PipeService.PropagateType">Constant Field Values</A></DL></DL><HR><A NAME="UnicastSecureType"><!-- --></A><H3>UnicastSecureType</H3><PRE>public static final java.lang.String <B>UnicastSecureType</B></PRE><DL><DD>End-to-end secured unicast pipe of Pipe<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.jxta.pipe.PipeService.UnicastSecureType">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="createInputPipe(net.jxta.protocol.PipeAdvertisement)"><!-- --></A><H3>createInputPipe</H3><PRE>public <A HREF="../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A> <B>createInputPipe</B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A>&nbsp;adv)                          throws java.io.IOException</PRE><DL><DD>Create an InputPipe from a pipe Advertisement<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - is the advertisement of the PipeService.<DT><B>Returns:</B><DD>InputPipe InputPipe object created<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - error creating input pipe</DL></DD></DL><HR><A NAME="createInputPipe(net.jxta.protocol.PipeAdvertisement, net.jxta.pipe.PipeMsgListener)"><!-- --></A><H3>createInputPipe</H3><PRE>public <A HREF="../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A> <B>createInputPipe</B>(<A HREF="../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A>&nbsp;adv,                                 <A HREF="../../../net/jxta/pipe/PipeMsgListener.html" title="interface in net.jxta.pipe">PipeMsgListener</A>&nbsp;listener)                          throws java.io.IOException</PRE><DL><DD>create an InputPipe from a pipe Advertisement<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - is the advertisement of the PipeService.<DD><CODE>listener</CODE> - PipeMsgListener to receive msgs.<DT><B>Returns:</B><DD>InputPipe InputPipe object created<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - error creating input pipe</DL></DD></DL><HR><A NAME="createOutputPipe(net.jxta.protocol.PipeAdvertisement, 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>&nbsp;adv,                                   long&nbsp;timeout)                            throws java.io.IOException</PRE><DL><DD>Attempt to ceate an OutputPipe using the specified Pipe Advertisement. The pipe will be be resolved 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>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.peer.PeerID, 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>&nbsp;adv,                                   <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A>&nbsp;peerid,                                   long&nbsp;timeout)                            throws java.io.IOException</PRE><DL><DD><B>Deprecated.</B>&nbsp;<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. 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>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>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.Enumeration, long)"><!-- --></A><H3>

⌨️ 快捷键说明

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