Edit C:\dspace\webapps\swordv2\WEB-INF\classes\org\dspace\sword2\SimpleZipContentDisseminator.class
???? 3 ? 7 z { | { } 6 ~ ? ? ? z ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # ? $ ? ? ? ? ? ? ? ? ? ? ? - ? ? ? ? ? 2 ? ? ? ? ? ? ? bitstreamService -Lorg/dspace/content/service/BitstreamService; <init> ()V Code LineNumberTable LocalVariableTable this 0Lorg/dspace/sword2/SimpleZipContentDisseminator; disseminate I(Lorg/dspace/core/Context;Lorg/dspace/content/Item;)Ljava/io/InputStream; ze Ljava/util/zip/ZipEntry; is Ljava/io/InputStream; bitstream Lorg/dspace/content/Bitstream; bss Ljava/util/List; bundle Lorg/dspace/content/Bundle; tempDir Ljava/lang/String; fn outStream Ljava/io/OutputStream; zip Ljava/util/zip/ZipOutputStream; bundles e Ljava/lang/Exception; context Lorg/dspace/core/Context; item Lorg/dspace/content/Item; LocalVariableTypeTable 0Ljava/util/List<Lorg/dspace/content/Bitstream;>; -Ljava/util/List<Lorg/dspace/content/Bundle;>; StackMapTable ? ? ? ? ? ? ? ? ? ? Exceptions ? ? disseminatesContentType (Ljava/lang/String;)Z contentType disseminatesPackage setContentType (Ljava/lang/String;)V setPackaging packaging getContentType ()Ljava/lang/String; getPackaging SourceFile !SimpleZipContentDisseminator.java ; < ? ? ? ? ? 9 : upload.temp.dir ? ? ? java/lang/StringBuilder ? ? ? O SWORD. ? ? ? ? ? . ? ? ? ? v .zip java/io/FileOutputStream java/io/File ; r ; ? java/util/zip/ZipOutputStream ; ? ? ? ? ? ? ? ? ? ? ? org/dspace/content/Bundle org/dspace/core/Constants ORIGINAL ? v ? ? ? ? ? org/dspace/content/Bitstream java/util/zip/ZipEntry ? ? ? ? ? ? ? ? ? < ? ? < %org/dspace/sword2/TempFileInputStream java/sql/SQLException java/io/IOException 'org/dspace/authorize/AuthorizeException &org/dspace/sword2/DSpaceSwordException ; ? application/zip ? ? O .org/dspace/sword2/SimpleZipContentDisseminator java/lang/Object *org/dspace/sword2/SwordContentDisseminator org/dspace/core/Context org/dspace/content/Item java/lang/String java/io/OutputStream java/util/List java/util/Iterator java/lang/Exception org/swordapp/server/SwordError (org/swordapp/server/SwordServerException 0org/dspace/content/factory/ContentServiceFactory getInstance 4()Lorg/dspace/content/factory/ContentServiceFactory; getBitstreamService /()Lorg/dspace/content/service/BitstreamService; $org/dspace/core/ConfigurationManager getProperty &(Ljava/lang/String;)Ljava/lang/String; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; separator getID ()Ljava/util/UUID; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; java/util/UUID randomUUID toString (Ljava/io/File;)V (Ljava/io/OutputStream;)V getBundles ()Ljava/util/List; iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; getName equals (Ljava/lang/Object;)Z getBitstreams putNextEntry (Ljava/util/zip/ZipEntry;)V +org/dspace/content/service/BitstreamService retrieve N(Lorg/dspace/core/Context;Lorg/dspace/content/Bitstream;)Ljava/io/InputStream; org/dspace/core/Utils copy .(Ljava/io/InputStream;Ljava/io/OutputStream;)V closeEntry java/io/InputStream close (Ljava/lang/Throwable;)V org/swordapp/server/UriRegistry PACKAGE_SIMPLE_ZIP ! 6 7 8 9 : ; <