KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > fenyo > gnetwatch > data > EventNmap


1
2 /*
3  * GNetWatch
4  * Copyright 2006, 2007 Alexandre Fenyo
5  * gnetwatch@fenyo.net
6  *
7  * This file is part of GNetWatch.
8  *
9  * GNetWatch is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * GNetWatch is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with GNetWatch; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22  */

23
24 package net.fenyo.gnetwatch.data;
25
26 import net.fenyo.gnetwatch.*;
27 import net.fenyo.gnetwatch.targets.*;
28
29 import java.util.*;
30
31 import org.apache.commons.logging.Log;
32 import org.apache.commons.logging.LogFactory;
33
34 /**
35  * This event stores the output of nmap.
36  * @author Alexandre Fenyo
37  * @version $Id: EventNmap.java,v 1.1 2007/03/09 22:44:20 fenyo Exp $
38  */

39
40 public class EventNmap extends EventGeneric {
41   private static Log log = LogFactory.getLog(EventNmap.class);
42
43   private final String JavaDoc output;
44
45   /**
46    * Constructor.
47    * @param output output of Nmap process.
48    */

49   // Queue thread
50
public EventNmap(final String JavaDoc output) {
51     this.output = output;
52   }
53
54   /**
55    * Returns the stored output.
56    * @param none.
57    * @return String stored output.
58    */

59   // Queue & AWT thread
60
public String JavaDoc getOutput() {
61     return output;
62   }
63 }
64
Popular Tags