java/src/org/openantivirus/engine/censor/trie Trie.java,1.2,1.3 TrieNode.java,1.1,1.2 PositionFoundEvent.java,1.2,NONE StringFinder.java,1.2,NONE PositionFoundListener.java,1.1,NONE
Kurt Huwig <[email protected]> Wed, 19 May 2004 07:33:42 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/java/src/org/openantivirus/engine/censor/trie In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1513/src/org/openantivirus/engine/censor/trie Modified Files: Trie.java TrieNode.java Removed Files: PositionFoundEvent.java StringFinder.java PositionFoundListener.java Log Message: Added MatchArrayCensor Code cleanup Virus name without offset Index: Trie.java =================================================================== RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/engine/censor/trie/Trie.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Trie.java 18 May 2004 09:03:27 -0000 1.2 +++ Trie.java 19 May 2004 07:33:39 -0000 1.3 @@ -28,6 +28,8 @@ import java.util.*; +import org.openantivirus.engine.censor.*; + /** * Trie * @@ -35,7 +37,7 @@ * @author Kurt Huwig <[email protected]> * @version $Revision$ */ -public class Trie { +public class Trie implements StringSearch { public final static int MINIMUM_LENGTH = 3; private TrieNode nRoot = new TrieNode(); @@ -109,4 +111,8 @@ public int[] getNodeDepths() { return nodeDepthCount; } + + public Censor getCensor() { + return new TrieCensor(this); + } } --- PositionFoundEvent.java DELETED --- Index: TrieNode.java =================================================================== RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/engine/censor/trie/TrieNode.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TrieNode.java 14 Dec 2003 11:08:26 -0000 1.1 +++ TrieNode.java 19 May 2004 07:33:39 -0000 1.2 @@ -28,6 +28,8 @@ import java.util.*; +import org.openantivirus.engine.censor.*; + /** * A node in the trie * --- PositionFoundListener.java DELETED --- --- StringFinder.java DELETED --- ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click