| java.lang.Object net.fenyo.gnetwatch.activities.Capture
Capture | public class Capture implements Runnable(Code) | | This class captures Ethernet frames using tethereal on a single layer-2 interface.
The frames are parsed with SAX.
author: Alexandre Fenyo version: $Id: Capture.java,v 1.13 2007/03/09 22:44:21 fenyo Exp $ |
Field Summary | |
final SAXReader | reader |
Method Summary | |
public void | createCaptureThread() Starts the capture thread.
none. | public void | end() Stops the capture thread and waits for its end.
none. | public static String[] | listDevices() Lists all available devices.
none. | public void | run() Reads tethereal standard output and extracts frames one by one.
none. |
reader | final SAXReader reader(Code) | | |
Capture | public Capture(Config config, CaptureManager manager, int device, String filter)(Code) | | Constructor.
GUI thread.
Parameters: config - configuration. Parameters: manager - capture manager this instance works for. Parameters: device - device this instance captures frames from. Parameters: filter - capture filter to apply. |
createCaptureThread | public void createCaptureThread()(Code) | | Starts the capture thread.
none. void. |
run | public void run()(Code) | | Reads tethereal standard output and extracts frames one by one.
none. void. |
|
|