?? discoveryquery.html
字號:
<TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/DiscoveryQuery.html#toString()">toString</A></B>()</CODE><BR> <B>Deprecated.</B> <I>should not be used. use getDocument().toString() instead.</I></TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.jxta.protocol.DiscoveryQueryMsg"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.protocol.<A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html" title="class in net.jxta.protocol">DiscoveryQueryMsg</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#getAdvertisementType()">getAdvertisementType</A>, <A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#getAttr()">getAttr</A>, <A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#getDiscoveryType()">getDiscoveryType</A>, <A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#getPeerAdv()">getPeerAdv</A>, <A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#getPeerAdvertisement()">getPeerAdvertisement</A>, <A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#getThreshold()">getThreshold</A>, <A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#getValue()">getValue</A>, <A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#setAttr(java.lang.String)">setAttr</A>, <A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#setDiscoveryType(int)">setDiscoveryType</A>, <A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#setPeerAdv(java.lang.String)">setPeerAdv</A>, <A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#setThreshold(int)">setThreshold</A>, <A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#setValue(java.lang.String)">setValue</A></CODE></TD></TR></TABLE> <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>clone, equals, finalize, getClass, hashCode, 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="DiscoveryQuery()"><!-- --></A><H3>DiscoveryQuery</H3><PRE>public <B>DiscoveryQuery</B>()</PRE><DL><DD>Default constructor<P></DL><HR><A NAME="DiscoveryQuery(java.io.InputStream)"><!-- --></A><H3>DiscoveryQuery</H3><PRE>public <B>DiscoveryQuery</B>(java.io.InputStream stream) throws java.io.IOException</PRE><DL><DD>Construct a doc from InputStream<P></DL><HR><A NAME="DiscoveryQuery(net.jxta.document.TextElement)"><!-- --></A><H3>DiscoveryQuery</H3><PRE>public <B>DiscoveryQuery</B>(<A HREF="../../../../net/jxta/document/TextElement.html" title="interface in net.jxta.document">TextElement</A> doc)</PRE><DL><DD>Construct from a StructuredDocument<P></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="handleElement(net.jxta.document.TextElement)"><!-- --></A><H3>handleElement</H3><PRE>protected boolean <B>handleElement</B>(<A HREF="../../../../net/jxta/document/TextElement.html" title="interface in net.jxta.document">TextElement</A> elem)</PRE><DL><DD>Process an individual element from the document.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - the element to be processed.<DT><B>Returns:</B><DD>true if the element was recognized, otherwise false.</DL></DD></DL><HR><A NAME="initialize(net.jxta.document.Element)"><!-- --></A><H3>initialize</H3><PRE>protected void <B>initialize</B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> root)</PRE><DL><DD>Intialize a Discovery Query from a portion of a structured document.<P><DD><DL></DL></DD></DL><HR><A NAME="getDocument(net.jxta.document.MimeMediaType)"><!-- --></A><H3>getDocument</H3><PRE>public <A HREF="../../../../net/jxta/document/Document.html" title="interface in net.jxta.document">Document</A> <B>getDocument</B>(<A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> asMimeType)</PRE><DL><DD>Write advertisement into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. Two standard document forms are defined. "text/text" encodes the document in a form nice for printing out, and "text/xml" which provides an XML representation.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html#getDocument(net.jxta.document.MimeMediaType)">getDocument</A></CODE> in class <CODE><A HREF="../../../../net/jxta/protocol/DiscoveryQueryMsg.html" title="class in net.jxta.protocol">DiscoveryQueryMsg</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>asMimeType</CODE> - mime-type format requested<DT><B>Returns:</B><DD>Document representaion of the document as an advertisement</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD><B>Deprecated.</B> <I>should not be used. use getDocument().toString() instead.</I><P><DD>return the string representaion of this doc<P><DD><DL></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/DiscoveryQuery.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/protocol/AccessPointAdv.Instantiator.html" title="class in net.jxta.impl.protocol"><B>PREV CLASS</B></A> <A HREF="../../../../net/jxta/impl/protocol/DiscoveryResponse.html" title="class in net.jxta.impl.protocol"><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="DiscoveryQuery.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 | FIELD | <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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -