Edit C:\Users\Admin\.m2\repository\org\dspace\dspace-api\6.2\org\dspace\ctask\general\ClamScan.class
???? 3? ? # { # # # # # # # # # # # #! #" ## #$% #& #' #( #)* #+ ?, #-./01/234/5 67 68 #9: 1; 1< => 1? #@A #BC #D #E #FGHIJKLM B ANJOPQPRS TUVW H>X #Y #Z [\] Q^ :_` T^ #ab Wcd 1ef \g Wh #ijkl Wmnop :qr Ws gtu gvwxy W\z{ [|} g~ g? g?? W??? {??? {????? H?? #?J?????? 1? 8?k?k? ??? DEFAULT_CHUNK_SIZE I ConstantValue INSTREAM [B PING STATS IDSESSION END PLUGIN_PREFIX Ljava/lang/String; INFECTED_MESSAGE CLEAN_MESSAGE CONNECT_FAIL_MESSAGE SCAN_FAIL_MESSAGE NEW_ITEM_HANDLE log Lorg/slf4j/Logger; host port timeout failfast Z status results Ljava/util/List; Signature $Ljava/util/List<Ljava/lang/String;>; socket Ljava/net/Socket; dataOutputStream Ljava/io/DataOutputStream; bitstreamService -Lorg/dspace/content/service/BitstreamService; buffer <init> ()V Code LineNumberTable LocalVariableTable this #Lorg/dspace/ctask/general/ClamScan; init 0(Lorg/dspace/curate/Curator;Ljava/lang/String;)V curator Lorg/dspace/curate/Curator; taskId Exceptions perform $(Lorg/dspace/content/DSpaceObject;)I ioE Ljava/io/IOException; inputstream Ljava/io/InputStream; bstatus bitstream Lorg/dspace/content/Bitstream; bundle Lorg/dspace/content/Bundle; authE )Lorg/dspace/authorize/AuthorizeException; sqlE Ljava/sql/SQLException; item Lorg/dspace/content/Item; dso !Lorg/dspace/content/DSpaceObject; StackMapTable*?ACL?S?]`? openSession e Ljava/net/SocketException;n closeSession scan H(Lorg/dspace/content/Bitstream;Ljava/io/InputStream;Ljava/lang/String;)I itemMsg bsMsg response itemHandle read? formatResults (Lorg/dspace/content/Item;)V scanresult count sb Ljava/lang/StringBuilder;: getItemHandle -(Lorg/dspace/content/Item;)Ljava/lang/String; handle logDebugMessage (Ljava/lang/String;)V message <clinit> SourceFile ClamScan.java RuntimeVisibleAnnotations Lorg/dspace/curate/Suspendable; invoked? Invoked InnerClasses #Lorg/dspace/curate/Curator$Invoked; INTERACTIVE ? ? ? ? zINSTREAM???? ? ? zPING?? ? ? nSTATS ? ? zIDSESSION?? ? ? zEND?? ? ? clamav ? ? had virus detected. ? ? had no viruses detected. ? ? 0Unable to connect to virus service - check setup ? ? 3Error encountered using virus service - check setup ? ? in workflow ? ? ? ? ? ? ? ? ? ? org/dspace/curate/Curator ? ? ? ? ? ? ? ? !org/dspace/ctask/general/ClamScan ? ? ? ??? clamav.service.host??? clamav.service.port?? clamav.socket.timeout clamav.scan.failfast??????? ? ? java/lang/StringBuilder The target dso is ??????? ? ? org/dspace/content/Item ? ? java/io/IOException ? ?? ??? ORIGINAL?????? org/dspace/content/Bundle java/util/ArrayList????????? org/dspace/content/Bitstream????? Scanning . . . ? ? ? ??? ? 'org/dspace/authorize/AuthorizeException?? ?? java/sql/SQLException ? ? java/net/Socket Connecting to :?? java/net/InetSocketAddress ???? ? ? Failed to connect to clamd . . .????? java/net/SocketException $Could not set socket timeout . . . ms ?? java/io/DataOutputStream?? ?? "Failed to open OutputStream . . . ?? 6Error initiating session with IDSESSION command . . . "Exception closing dataOutputStream +Closing the socket for ClamAv daemon . . . Exception closing socket Error writing INSTREAM command ?? )Failed attempting to read the InputStream???? Could not write to the socket? ? )Error writing zero-length chunk to socket?? Error reading result from socket java/lang/String ?? Response: FOUND?? item - : bitstream - : SequenceId - ?? : infected? ??? Item: virus(es) found. failfast: ??????? ???? &org/dspace/curate/AbstractCurationTask org/dspace/content/DSpaceObject java/util/Iterator java/io/InputStream java/lang/Throwable !org/dspace/curate/Curator$Invoked getBytes ()[B configurationService *Lorg/dspace/services/ConfigurationService; (org/dspace/services/ConfigurationService getProperty &(Ljava/lang/String;)Ljava/lang/String; getIntProperty (Ljava/lang/String;)I getBooleanProperty (Ljava/lang/String;)Z 0org/dspace/content/factory/ContentServiceFactory getInstance 4()Lorg/dspace/content/factory/ContentServiceFactory; getBitstreamService /()Lorg/dspace/content/service/BitstreamService; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; getName ()Ljava/lang/String; toString setResult itemService (Lorg/dspace/content/service/ItemService; &org/dspace/content/service/ItemService getBundles =(Lorg/dspace/content/Item;Ljava/lang/String;)Ljava/util/List; java/util/List get (I)Ljava/lang/Object; getBitstreams ()Ljava/util/List; iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; curationContext ()Lorg/dspace/core/Context; +org/dspace/content/service/BitstreamService retrieve N(Lorg/dspace/core/Context;Lorg/dspace/content/Bitstream;)Ljava/io/InputStream; close getMessage *(Ljava/lang/String;Ljava/lang/Throwable;)V (I)Ljava/lang/StringBuilder; (Ljava/lang/String;I)V connect (Ljava/net/SocketAddress;)V org/slf4j/Logger error setSoTimeout (I)V (Ljava/lang/Throwable;)V getOutputStream ()Ljava/io/OutputStream; (Ljava/io/OutputStream;)V write ([B)V ([B)I writeInt ([BII)V flush getInputStream ()Ljava/io/InputStream; contains (Ljava/lang/CharSequence;)Z getSequenceID ()I report add (Ljava/lang/Object;)Z (Z)Ljava/lang/StringBuilder; getHandle isDebugEnabled debug org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; ! # ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?*? * ? *? ? *? ? *? ? * ? ? *? ? *? *? *? *? *? *? *? *? *? *? *?? *? *? !*? "* ?? $? ? Z + - . / 0 &