Edit C:\dspace\webapps\rest\WEB-INF\lib\com\google\api\client\googleapis\media\MediaHttpDownloader.class
???? 1 9 ? 8 ? 8 ? : ? 8 ????????? 8 ? ? ? ? 8 ? ? ? 8 ? 8 ? ? ? ? ? ? ? : ? 8 ? 8 ? ? ? ? ? ? ? 8 ? 8 ? : ? ? ? ? ? 8 ? 8 ? ? ? ? ? ? ? ? % ? ? % ? % ? ? % ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 8 ? ? ? 8 ? ? ? ? ? ? DownloadState InnerClasses MAXIMUM_CHUNK_SIZE I ConstantValue requestFactory /Lcom/google/api/client/http/HttpRequestFactory; transport *Lcom/google/api/client/http/HttpTransport; directDownloadEnabled Z progressListener LLcom/google/api/client/googleapis/media/MediaHttpDownloaderProgressListener; chunkSize mediaContentLength J downloadState JLcom/google/api/client/googleapis/media/MediaHttpDownloader$DownloadState; bytesDownloaded lastBytePos <init> `(Lcom/google/api/client/http/HttpTransport;Lcom/google/api/client/http/HttpRequestInitializer;)V Code LineNumberTable LocalVariableTable this <Lcom/google/api/client/googleapis/media/MediaHttpDownloader; httpRequestInitializer 3Lcom/google/api/client/http/HttpRequestInitializer; download @(Lcom/google/api/client/http/GenericUrl;Ljava/io/OutputStream;)V requestUrl 'Lcom/google/api/client/http/GenericUrl; outputStream Ljava/io/OutputStream; Exceptions ? h(Lcom/google/api/client/http/GenericUrl;Lcom/google/api/client/http/HttpHeaders;Ljava/io/OutputStream;)V response )Lcom/google/api/client/http/HttpResponse; currentRequestLastBytePos contentRange Ljava/lang/String; nextByteIndex requestHeaders (Lcom/google/api/client/http/HttpHeaders; executeCurrentRequest ?(JLcom/google/api/client/http/GenericUrl;Lcom/google/api/client/http/HttpHeaders;Ljava/io/OutputStream;)Lcom/google/api/client/http/HttpResponse; rangeHeader Ljava/lang/StringBuilder; request (Lcom/google/api/client/http/HttpRequest; getNextByteIndex (Ljava/lang/String;)J setBytesDownloaded ?(J)Lcom/google/api/client/googleapis/media/MediaHttpDownloader; setContentRange @(JI)Lcom/google/api/client/googleapis/media/MediaHttpDownloader; firstBytePos setMediaContentLength (Ljava/lang/String;)V isDirectDownloadEnabled ()Z setDirectDownloadEnabled ?(Z)Lcom/google/api/client/googleapis/media/MediaHttpDownloader; setProgressListener ?(Lcom/google/api/client/googleapis/media/MediaHttpDownloaderProgressListener;)Lcom/google/api/client/googleapis/media/MediaHttpDownloader; getProgressListener N()Lcom/google/api/client/googleapis/media/MediaHttpDownloaderProgressListener; getTransport ,()Lcom/google/api/client/http/HttpTransport; setChunkSize ?(I)Lcom/google/api/client/googleapis/media/MediaHttpDownloader; getChunkSize ()I getNumBytesDownloaded ()J getLastBytePosition updateStateAndNotifyListener M(Lcom/google/api/client/googleapis/media/MediaHttpDownloader$DownloadState;)V getDownloadState L()Lcom/google/api/client/googleapis/media/MediaHttpDownloader$DownloadState; getProgress ()D SourceFile MediaHttpDownloader.java O ? D E H > ? L K L N J ? ? ? (com/google/api/client/http/HttpTransport B C ? ? ? ? @ A X ` ? ? alt media ? ? ? ? L ? ? i j ? ? ? ? ? ? ? ? ? I J M J ? L ? ? ? ? ? o p v w ? ? ? ? ? ? java/lang/StringBuilder bytes= ? ? ? ? - ? ? ? ? ? ? ? ? ? ? ? p q r F G :com/google/api/client/googleapis/media/MediaHttpDownloader java/lang/Object Hcom/google/api/client/googleapis/media/MediaHttpDownloader$DownloadState java/io/IOException ()V NOT_STARTED (com/google/api/client/util/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; createRequestFactory 1()Lcom/google/api/client/http/HttpRequestFactory; d(Lcom/google/api/client/http/HttpRequestInitializer;)Lcom/google/api/client/http/HttpRequestFactory; checkArgument (Z)V %com/google/api/client/http/GenericUrl put 8(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object; MEDIA_IN_PROGRESS 'com/google/api/client/http/HttpResponse getHeaders *()Lcom/google/api/client/http/HttpHeaders; &com/google/api/client/http/HttpHeaders getContentLength ()Ljava/lang/Long; java/lang/Long longValue MEDIA_COMPLETE java/lang/Math min (JJ)J getContentRange ()Ljava/lang/String; -com/google/api/client/http/HttpRequestFactory buildGetRequest Q(Lcom/google/api/client/http/GenericUrl;)Lcom/google/api/client/http/HttpRequest; &com/google/api/client/http/HttpRequest putAll (Ljava/util/Map;)V append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (J)Ljava/lang/StringBuilder; toString setRange <(Ljava/lang/String;)Lcom/google/api/client/http/HttpHeaders; execute +()Lcom/google/api/client/http/HttpResponse; getContent ()Ljava/io/InputStream; "com/google/api/client/util/IOUtils copy .(Ljava/io/InputStream;Ljava/io/OutputStream;)V disconnect java/lang/String indexOf (I)I substring (II)Ljava/lang/String; parseLong (I)Ljava/lang/String; Jcom/google/api/client/googleapis/media/MediaHttpDownloaderProgressListener progressChanged ?(Lcom/google/api/client/googleapis/media/MediaHttpDownloader;)V 1 8 9 = >