|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.streamscanner.ClamAVScanner
public class ClamAVScanner
a virus stream scanner using ClamAV's clamd for scanning.
| Constructor Summary | |
|---|---|
ClamAVScanner()
default constructor. |
|
| Method Summary | |
|---|---|
void |
close()
called upon close of the scanned stream to signal the end of the scanning. |
void |
initialize(ClamAVScannerConfig conf)
injects the configuration. |
void |
scan(byte[] b)
scans the given byte array. |
void |
scan(int b)
delegates to scan(byte[]). |
void |
setContentType(java.lang.String t)
does nothing, as this scanner is independent of content-types. |
void |
setUser(User u)
does nothing, as this scanner does the same for all users. |
void |
shutdown()
unconditionally frees all resources of this scanner. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClamAVScanner()
| Method Detail |
|---|
public void setContentType(java.lang.String t)
setContentType in interface IStreamScannert - the content-typeIStreamScanner.setContentType(java.lang.String)public void setUser(User u)
setUser in interface IStreamScanneru - the userIStreamScanner.setUser(User)
public final void scan(byte[] b)
throws StreamException, InacceptableStreamException
scan in interface IStreamScannerb - the byte array to scan
StreamException - on errors communicating with ClamAV
InacceptableStreamException - if the stream contains a virus
public final void scan(int b)
throws InacceptableStreamException
scan(byte[]).
scan in interface IStreamScannerb - the byte to filter
InacceptableStreamException - if the stream contains a virus
public final void close()
throws InacceptableStreamException, StreamException
IStreamScanner
close in interface IStreamScannerStreamException - on errors with the underlying streams
InacceptableStreamException - if the scanned stream is inacceptablepublic void initialize(ClamAVScannerConfig conf)
initialize in interface Configurable<ClamAVScannerConfig>conf - the configuration to injectClamAVScannerConfigpublic void shutdown()
shutdown in interface IStreamScanner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||