|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ikarus.ScanService.Sender
public class Sender
Constructor Summary | |
---|---|
Sender()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
This method takes a full qualified server URL and a full qualified filepath that are send to the defined server. |
static Result |
send(java.net.URI host,
byte[] bytes)
This methods sends a given array of bytes to the IKARUS ScanService. |
static Result |
send(java.net.URI host,
java.io.InputStream inStream)
This methods sends a given InputStream to the IKARUS ScanService. |
static Result |
send(java.net.URI host,
java.lang.String filename)
This methods sends a file identified by a filename to the IKARUS ScanService. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sender()
Method Detail |
---|
public static Result send(java.net.URI host, java.lang.String filename) throws java.io.IOException
host
- A full qualified URL to the service like http://localhost:8080/virusscanfilename
- The file name that identifies the file to be scanned.
java.io.IOException
- Is thrown in case of communications issues.public static Result send(java.net.URI host, java.io.InputStream inStream) throws java.io.IOException
host
- A full qualified URL to the service like http://localhost:8080/virusscaninStream
- The InputStream name that is to be scanned.
java.io.IOException
- Is thrown in case of communications issues.public static Result send(java.net.URI host, byte[] bytes) throws java.io.IOException
host
- A full qualified URL to the service like http://localhost:8080/virusscanbytes
- The byte array holding the data to be scanned.
java.io.IOException
- Is thrown in case of communications issues.public static void main(java.lang.String[] args)
args
- There have to be exactly two arguments. The first specifies the IKScanService the second the file to be scanned. A brief helpt is displayed if an argument is missing.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |