public Capture(final Config config, final CaptureManager manager, final int device, final String filter) {
this.config = config;
this.manager = manager;
// to convert device to a string, we use the following expression : "" + device
// cmd = new ExternalCommand(new String [] { "tethereal", "-i", "" + device, "-T", "psml" }, true);
cmd = new ExternalCommand(new String [] { "tethereal", "-i", "" + device, "-T", "pdml", "-R", "\"" + filter + "\"" }, true);
}