java/src/org/openantivirus/engine/censor CensorFactory.java,NONE,1.1 StringSearch.java,1.1,1.2
Kurt Huwig <[email protected]> Thu, 20 May 2004 13:43:21 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/java/src/org/openantivirus/engine/censor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13262/src/org/openantivirus/engine/censor Modified Files: StringSearch.java Added Files: CensorFactory.java Log Message: Bugfix: ScanEngine was not thread safe Index: StringSearch.java =================================================================== RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/engine/censor/StringSearch.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- StringSearch.java 19 May 2004 07:33:41 -0000 1.1 +++ StringSearch.java 20 May 2004 13:43:17 -0000 1.2 @@ -33,7 +33,7 @@ * @author Kurt Huwig <[email protected]> * @version $Revision$ */ -public interface StringSearch { +public interface StringSearch extends CensorFactory { void addString(byte[] abPattern, PositionFoundListener pfl); /** @@ -41,6 +41,4 @@ * it can be used */ void prepare(); - - Censor getCensor(); } \ No newline at end of file --- NEW FILE: CensorFactory.java --- /* * $Id: CensorFactory.java,v 1.1 2004/05/20 13:43:17 kurti Exp $ * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is OAV. * * The Initial Developer of the Original Code is Kurt Huwig <[email protected]>. * Portions created by the Initial Developer are Copyright (C) 2001-2003 * the Initial Developer. All Rights Reserved. * * Contributor(s): * * ***** END LICENSE BLOCK ***** */ package org.openantivirus.engine.censor; /** * Creates a Censor * * Pattern-Roles: Factory * @author Kurt Huwig <[email protected]> * @version $Revision: 1.1 $ */ public interface CensorFactory { Censor createCensor(); } ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click