📄 spider.html
字号:
Stops the search.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Spider.html#urlHasBeenVisited(java.lang.String)">urlHasBeenVisited</A></B>(java.lang.String urlstring)</CODE>
<BR>
search the url search tree to see if we've already visited the specified url</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Thread"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Thread</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield</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="Spider(javax.swing.JTree, javax.swing.JTextArea, javax.swing.JLabel, java.lang.String, java.lang.String[], java.lang.String[], int, int)"><!-- --></A><H3>
Spider</H3>
<PRE>
public <B>Spider</B>(javax.swing.JTree atree, javax.swing.JTextArea amessagearea, javax.swing.JLabel astatlabel, java.lang.String astartsite, java.lang.String[] akeywordlist, java.lang.String[] aipdomainlist, int asitelimit, int adepthlimit)</PRE>
<DL>
<DD>Creates a new instance of Spider
<P>
<DT><B>Parameters:</B><DD><CODE>atree</CODE> - JTree used to display the search space<DD><CODE>amessagearea</CODE> - JTextArea used to display error/warning messages<DD><CODE>astatlabel</CODE> - JLabel to display number of searched sites and hits<DD><CODE>akeywordlist</CODE> - list of keywords to search for<DD><CODE>aipdomainlist</CODE> - list of top level domains<DD><CODE>asitelimit</CODE> - maximum number of web pages to look at<DD><CODE>adepthlimit</CODE> - maximum number of levels down to search (controls recursion)<DD><CODE>astartsite</CODE> - web site to use to start the search</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="run()"><!-- --></A><H3>
run</H3>
<PRE>
public void <B>run</B>()</PRE>
<DL>
<DD>start running the search in a new thread
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="urlHasBeenVisited(java.lang.String)"><!-- --></A><H3>
urlHasBeenVisited</H3>
<PRE>
public boolean <B>urlHasBeenVisited</B>(java.lang.String urlstring)</PRE>
<DL>
<DD>search the url search tree to see if we've already visited the specified url
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>urlstring</CODE> - url to search for<DT><B>Returns:</B><DD>true if the url is already in the tree</DL>
</DD>
</DL>
<HR>
<A NAME="depthLimitExceeded(javax.swing.tree.DefaultMutableTreeNode)"><!-- --></A><H3>
depthLimitExceeded</H3>
<PRE>
public boolean <B>depthLimitExceeded</B>(javax.swing.tree.DefaultMutableTreeNode node)</PRE>
<DL>
<DD>Check depth of search
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - search tree node to test the depth limit of<DT><B>Returns:</B><DD>true if depth limit exceeded</DL>
</DD>
</DL>
<HR>
<A NAME="fixHref(java.lang.String)"><!-- --></A><H3>
fixHref</H3>
<PRE>
public static java.lang.String <B>fixHref</B>(java.lang.String href)</PRE>
<DL>
<DD>repairs a sloppy href, flips backwards /, adds missing /
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>href</CODE> - web site reference<DT><B>Returns:</B><DD>repaired web page reference</DL>
</DD>
</DL>
<HR>
<A NAME="searchWeb(javax.swing.tree.DefaultMutableTreeNode, java.lang.String)"><!-- --></A><H3>
searchWeb</H3>
<PRE>
public void <B>searchWeb</B>(javax.swing.tree.DefaultMutableTreeNode parentnode, java.lang.String urlstr)</PRE>
<DL>
<DD>recursive routine to search the web
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>parentnode</CODE> - parentnode in the search tree<DD><CODE>urlstr</CODE> - web page address to search</DL>
</DD>
</DL>
<HR>
<A NAME="stopSearch()"><!-- --></A><H3>
stopSearch</H3>
<PRE>
public void <B>stopSearch</B>()</PRE>
<DL>
<DD>Stops the search.
<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"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD>
</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-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>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="IntegerVerifier.html" title="class in "><B>PREV CLASS</B></A>
<A HREF="Spider.SpiderParserCallback.html" title="class in "><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="Spider.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> | <A HREF="#fields_inherited_from_class_java.lang.Thread">FIELD</A> | <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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -