📄 capture.html
字号:
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="log"><!-- --></A><H3>
log</H3>
<PRE>
private static Log <B>log</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="reader"><!-- --></A><H3>
reader</H3>
<PRE>
final SAXReader <B>reader</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="config"><!-- --></A><H3>
config</H3>
<PRE>
private final <A HREF="../../../../net/fenyo/gnetwatch/Config.html" title="class in net.fenyo.gnetwatch">Config</A> <B>config</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="cmd"><!-- --></A><H3>
cmd</H3>
<PRE>
private <A HREF="../../../../net/fenyo/gnetwatch/actions/ExternalCommand.html" title="class in net.fenyo.gnetwatch.actions">ExternalCommand</A> <B>cmd</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="manager"><!-- --></A><H3>
manager</H3>
<PRE>
private <A HREF="../../../../net/fenyo/gnetwatch/activities/CaptureManager.html" title="class in net.fenyo.gnetwatch.activities">CaptureManager</A> <B>manager</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="forked"><!-- --></A><H3>
forked</H3>
<PRE>
private boolean <B>forked</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="capture_thread"><!-- --></A><H3>
capture_thread</H3>
<PRE>
private java.lang.Thread <B>capture_thread</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="must_end"><!-- --></A><H3>
must_end</H3>
<PRE>
private boolean <B>must_end</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="Capture(net.fenyo.gnetwatch.Config, net.fenyo.gnetwatch.activities.CaptureManager, int, java.lang.String)"><!-- --></A><H3>
Capture</H3>
<PRE>
public <B>Capture</B>(<A HREF="../../../../net/fenyo/gnetwatch/Config.html" title="class in net.fenyo.gnetwatch">Config</A> config,
<A HREF="../../../../net/fenyo/gnetwatch/activities/CaptureManager.html" title="class in net.fenyo.gnetwatch.activities">CaptureManager</A> manager,
int device,
java.lang.String filter)</PRE>
<DL>
<DD>Constructor. GUI thread.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>config</CODE> - configuration.<DD><CODE>manager</CODE> - capture manager this instance works for.<DD><CODE>device</CODE> - device this instance captures frames from.<DD><CODE>filter</CODE> - capture filter to apply.</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="listDevices()"><!-- --></A><H3>
listDevices</H3>
<PRE>
public static java.lang.String[] <B>listDevices</B>()
throws java.lang.InterruptedException</PRE>
<DL>
<DD>Lists all available devices.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> -
<DT><B>Returns:</B><DD>list of device names.
<DT><B>Throws:</B>
<DD><CODE>java.lang.InterruptedException</CODE> - exception.</DL>
</DD>
</DL>
<HR>
<A NAME="createCaptureThread()"><!-- --></A><H3>
createCaptureThread</H3>
<PRE>
public void <B>createCaptureThread</B>()</PRE>
<DL>
<DD>Starts the capture thread.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="end()"><!-- --></A><H3>
end</H3>
<PRE>
public void <B>end</B>()
throws java.lang.InterruptedException</PRE>
<DL>
<DD>Stops the capture thread and waits for its end.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> -
<DT><B>Throws:</B>
<DD><CODE>java.lang.InterruptedException</CODE> - exception.</DL>
</DD>
</DL>
<HR>
<A NAME="handlePacket(java.lang.StringBuffer)"><!-- --></A><H3>
handlePacket</H3>
<PRE>
private void <B>handlePacket</B>(java.lang.StringBuffer packet)
throws DocumentException</PRE>
<DL>
<DD>Gives the next frame to the manager.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>packet</CODE> - next frame.
<DT><B>Throws:</B>
<DD><CODE>DocumentException</CODE> - SAX parse exception.</DL>
</DD>
</DL>
<HR>
<A NAME="run()"><!-- --></A><H3>
run</H3>
<PRE>
public void <B>run</B>()</PRE>
<DL>
<DD>Reads tethereal standard output and extracts frames one by one.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>run</CODE> in interface <CODE>java.lang.Runnable</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> - </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=2 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="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>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../net/fenyo/gnetwatch/activities/Background.html" title="class in net.fenyo.gnetwatch.activities"><B>PREV CLASS</B></A>
<A HREF="../../../../net/fenyo/gnetwatch/activities/CaptureManager.html" title="class in net.fenyo.gnetwatch.activities"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?net/fenyo/gnetwatch/activities/Capture.html" target="_top"><B>FRAMES</B></A>
<A HREF="Capture.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> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <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 + -