java/src/org/openantivirus/engine/vfs VfsEntry.java,1.1,1.2

Kurt Huwig <[email protected]> Thu, 20 May 2004 13:04:51 +0000
Newsgroups gmane.comp.security.virus.openantivirus.cvs
Message-ID <[email protected]>
Update of /cvsroot/openantivirus/java/src/org/openantivirus/engine/vfs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5503/src/org/openantivirus/engine/vfs

Modified Files:
	VfsEntry.java 
Log Message:
Added multipart string finder
Speed improvements

Index: VfsEntry.java
===================================================================
RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/engine/vfs/VfsEntry.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- VfsEntry.java	14 Dec 2003 11:08:26 -0000	1.1
+++ VfsEntry.java	20 May 2004 13:04:49 -0000	1.2
@@ -17,7 +17,7 @@
  * 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
+ * Portions created by the Initial Developer are Copyright (C) 2001-2004
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
@@ -27,6 +27,7 @@
 package org.openantivirus.engine.vfs;
 
 import java.io.*;
+import java.util.*;
 
 /**
  * An entry in the vfs
@@ -35,23 +36,25 @@
  * @author  Kurt Huwig <[email protected]>
  * @version $Revision$
  */
-public interface VfsEntry {
-    int MAX_START_SIZE = 4096;
+public abstract class VfsEntry {
+    public static final int MAX_START_SIZE = 4096;
+    
+    public Map attributes = new HashMap();
     
     /** @return File this entry represents */
-    File getFile() throws IOException;
+    public abstract File getFile() throws IOException;
     
     /**
      * @return the first block of bytes from the object; should be at least 4kB
      */
-    byte[] getStart() throws IOException;
+    public abstract byte[] getStart() throws IOException;
     
     /**
      * called if the VfsEntry is not needed any more; no method may be called
      * afterwards.
      */
-    void dispose() throws IOException;
+    public abstract void dispose() throws IOException;
     
     /** @return (file-)name of the entry */
-    String getName();
+    public abstract String getName();
 }



-------------------------------------------------------
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