?? pipeservice.html
字號:
<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> adv, <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A> listener)</CODE><BR> 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> <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> adv, <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> peerid, long timeout)</CODE><BR> <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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> 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)</CODE><BR> <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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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> adv, java.util.Set resolvablePeers, long timeout)</CODE><BR> 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> 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> pipeAdv, java.util.Set resolvablePeers, <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A> listener)</CODE><BR> 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> <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 pipeID, <A HREF="../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A> listener)</CODE><BR> Remove an OutputPipeListener previously registered with <code>createOuputputPipe</code>.</TD></TR></TABLE> <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> <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> <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> 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> adv, <A HREF="../../../net/jxta/pipe/PipeMsgListener.html" title="interface in net.jxta.pipe">PipeMsgListener</A> 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> adv, 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 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> adv, <A HREF="../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> peerid, 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> 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 + -