All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.common.http.client.HttpDownloadHelper.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3?9com/groupbyinc/flux/common/http/client/HttpDownloadHelperjava/lang/ObjectHttpDownloadHelper.javaCcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$GetThread	GetThreadIcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$VerboseProgress	VerboseProgressFcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$NullProgressNullProgressJcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$DownloadProgressDownloadProgressEcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$ChecksummerChecksummer;com/groupbyinc/flux/common/http/client/HttpDownloadHelper$2;com/groupbyinc/flux/common/http/client/HttpDownloadHelper$1useTimestampZskipExisting
SHA1_CHECKSUMGLcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$Checksummer;MD5_CHECKSUM()V 
!	#	%this;Lcom/groupbyinc/flux/common/http/client/HttpDownloadHelper;download?(Ljava/net/URL;Ljava/nio/file/Path;Lcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$DownloadProgress;Lcom/groupbyinc/flux/common/unit/TimeValue;)Zjava/lang/Exception+%Lcom/groupbyinc/flux/common/Nullable;java/lang/InterruptedException.java/nio/file/LinkOption0java/nio/file/Files2exists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z45
36

!getLastModifiedTimeS(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileTime;9:
3; java/nio/file/attribute/FileTime=toMillis()J?@
>A?(Lcom/groupbyinc/flux/common/http/client/HttpDownloadHelper;Ljava/net/URL;Ljava/nio/file/Path;ZJLcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$DownloadProgress;)VC
D	setDaemon(Z)VFG
HstartJ 
K)com/groupbyinc/flux/common/unit/TimeValueMmillisO@
NPjoin(J)VRS
TisAlive()ZVW
X1com/groupbyinc/flux/ElasticsearchTimeoutExceptionZjava/lang/StringBuilder\
]!#The GET operation took longer than _append-(Ljava/lang/String;)Ljava/lang/StringBuilder;ab
]c-(Ljava/lang/Object;)Ljava/lang/StringBuilder;ae
]f, stopping it.htoString()Ljava/lang/String;jk
]l((Ljava/lang/String;[Ljava/lang/Object;)Vn
[ocloseStreamsq 
rjava/lang/Throwablet
wasSuccessfulvW
wie Ljava/lang/InterruptedException;sourceLjava/net/URL;destLjava/nio/file/Path;progressLLcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$DownloadProgress;timeout+Lcom/groupbyinc/flux/common/unit/TimeValue;	timestampJhasTimestamp	getThreadELcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$GetThread;downloadAndVerifyChecksum?(Ljava/net/URL;Ljava/nio/file/Path;Ljava/nio/file/Path;Lcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$DownloadProgress;Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$Checksummer;)Zjava/io/FileNotFoundException?!java/nio/file/NoSuchFileException?)*
?readAllBytes(Ljava/nio/file/Path;)[B??
3?!java/nio/charset/StandardCharsets?UTF_8Ljava/nio/charset/Charset;??	??readAllLines@(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/util/List;??
3?java/util/List?size()I????4com/groupbyinc/flux/ElasticsearchCorruptionException?"invalid format for checksum file (?name?k?), expected 1 line, got: ?(I)Ljava/lang/StringBuilder;a?
]?(Ljava/lang/String;)V?
??[B?get(I)Ljava/lang/Object;????java/lang/String?checksum([B)Ljava/lang/String;???equals(Ljava/lang/Object;)Z??
??incorrect hash (?), file hash: [?], expected: [?]?java/nio/file/Path?5com/groupbyinc/flux/common/apache/lucene/util/IOUtils?deleteFilesIgnoringExceptions([Ljava/nio/file/Path;)V??
??java/net/URL?java/io/IOException?	fileBytes
checksumLines$Ljava/util/List;Ljava/util/List;checksumHexLjava/lang/String;fileHexeLjava/io/IOException;checksumURLoriginalFilechecksumFilehashFunc
access$000>(Lcom/groupbyinc/flux/common/http/client/HttpDownloadHelper;)Zx0
!	?
!	?CodeLocalVariableTableLineNumberTable
StackMapTable
Exceptions"RuntimeVisibleParameterAnnotationsLocalVariableTypeTable
SourceFileInnerClasses!		 ?A*?"*?$*?&??'(?35	6)*??	?,?1?7?*?&??-??
Y?8N	76*?$?,?1?7?,?1?? C#E&F8GEHHKYN_OdPnRvS?Y?Z?V?W?Y?\??'?RG/Lu	?,?
-???H
?*+-????,??:-????:???3??Y?]Y?^??d???d??d?????m???????:	??:

	?š=??Y?]Y?^Ķd???dƶd
?dȶd	?dʶd?m???6??Y-S?????Y-S?ҧ&:6??Y-S???:??Y-S???????????????????z??????d`??	oU??
????'(??|??~??~????????????F?
???'?9?W?d?o?y????????????????9?W???[??????NM?Ru?,?-???/*?$???(?3? ?1?Y???Y?????
g
t??:
	
			




© 2015 - 2025 Weber Informatics LLC | Privacy Policy