aspose file tools*
The moose likes Java in General and the fly likes Java Virus Scanner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Virus Scanner" Watch "Java Virus Scanner" New topic
Author

Java Virus Scanner

Michael MacEachran
Greenhorn

Joined: Dec 15, 2009
Posts: 11
Is there a virus scanner for Java? I am doing some file I/O and need to scan it. Ideally, a class that takes a ByteStream, InputStream, File, or whatever, and does the scan in my code before I write it to disk. (Actually store it in Alfresco)

Thank you,
Michael
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18656
    
    8

Unfortunately the hard part of virus-scanning is figuring out what viruses to scan for, and how to scan for them. If you want to do a good job of that (forgetting about Java for the moment) then the best way is to use the virus-scanning tools provided by some commercial anti-virus company.

So if you accept that and decide to go that route, your question now becomes "Is there a Java interface for using Company X's anti-virus tools to scan a stream of bytes?" Except that there are several Companies X you might ask about. So now you have a research project which involves producing a list of suitable Companies X and trying to find out what interfaces they support.
Michael MacEachran
Greenhorn

Joined: Dec 15, 2009
Posts: 11
I agree. And after yesterdays attack, it has gone to the top of the list. So I have a budget. Im just wondering if someone out there has already done the research and can tell me who company X is.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14269
    
  21

Well, Symantec and McAfee for example are names of well-known companies that sell anti-virus software. I'm sure there are more. Lookup their websites, see if you can find any info there, send them a message to ask if they support what you're looking for.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Virus Scanner