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

com.groupbyinc.flux.common.apache.lucene.util.IOUtils.class Maven / Gradle / Ivy

????4?5com/groupbyinc/flux/common/apache/lucene/util/IOUtilsjava/lang/ObjectIOUtils.java7com/groupbyinc/flux/common/apache/lucene/util/IOUtils$1java/util/Map$Entry
java/util/Map
EntryUTF_8Ljava/lang/String;$assertionsDisabledZ()V
this7Lcom/groupbyinc/flux/common/apache/lucene/util/IOUtils;close([Ljava/io/Closeable;)Vjava/io/IOExceptionjava/util/ArraysasList%([Ljava/lang/Object;)Ljava/util/List;
(Ljava/lang/Iterable;)V!
"objects[Ljava/io/Closeable;java/lang/Throwable&java/lang/Iterable(iterator()Ljava/util/Iterator;*+),java/util/Iterator.hasNext()Z01/2next()Ljava/lang/Object;45/6java/io/Closeable89:
addSuppressed-(Ljava/lang/Throwable;Ljava/lang/Throwable;)V<=
>
rethrowAlways((Ljava/lang/Throwable;)Ljava/lang/Error;@A
BtLjava/lang/Throwable;objectLjava/io/Closeable;*Ljava/lang/Iterable<+Ljava/io/Closeable;>;Ljava/lang/Iterable;thcloseWhileHandlingExceptionK!
L(Ljava/lang/Throwable;)V<N
'O	exception
suppressedgetDecodingReaderA(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/io/Reader;java/nio/charset/CharsetU
newDecoder#()Ljava/nio/charset/CharsetDecoder;WX
VY"java/nio/charset/CodingErrorAction[REPORT$Ljava/nio/charset/CodingErrorAction;]^	\_java/nio/charset/CharsetDecoderaonMalformedInputG(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;cd
beonUnmappableCharactergd
bhjava/io/BufferedReaderjjava/io/InputStreamReaderl9(Ljava/io/InputStream;Ljava/nio/charset/CharsetDecoder;)Vn
mo(Ljava/io/Reader;)Vq
krstreamLjava/io/InputStream;charSetLjava/nio/charset/Charset;charSetDecoder!Ljava/nio/charset/CharsetDecoder;O(Ljava/lang/Class;Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/io/Reader;java/lang/Class{getResourceAsStream)(Ljava/lang/String;)Ljava/io/InputStream;}~
|ST
?
?java/lang/String?java/io/InputStream?java/io/Reader?readerLjava/io/Reader;clazzLjava/lang/Class<*>;Ljava/lang/Class;resourcesuccessdeleteFilesIgnoringExceptionsS(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Ljava/util/Collection;)Vjava/util/Collection??,8com/groupbyinc/flux/common/apache/lucene/store/Directory?
deleteFile(Ljava/lang/String;)V??
??namedir:Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;files*Ljava/util/Collection;Ljava/util/Collection;P(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;[Ljava/lang/String;)V??
?[Ljava/lang/String;deleteFilesnames??
?([Ljava/nio/file/Path;)V(Ljava/util/Collection;)V??
?[Ljava/nio/file/Path;java/nio/file/Path?java/nio/file/Files?delete(Ljava/nio/file/Path;)V??
??Ljava/nio/file/Path;-Ljava/util/Collection<+Ljava/nio/file/Path;>;deleteFilesIfExist??
?deleteIfExists(Ljava/nio/file/Path;)Z??
??filermjava/util/LinkedHashMap?
?I(Ljava/util/LinkedHashMap;[Ljava/nio/file/Path;)Ljava/util/LinkedHashMap;??
?isEmpty?1
??java/lang/StringBuilder?ACould not remove the following files (in the order of attempts):
??
??entrySet()Ljava/util/Set;??
??
java/util/Set??,   ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??getKey?5	?toAbsolutePath()Ljava/nio/file/Path;????-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??: ?getValue?5	?
?toString()Ljava/lang/String;??
??
?kv@Ljava/util/Map$Entry;Ljava/util/Map$Entry;bLjava/lang/StringBuilder;	locations	unremovedDLjava/util/LinkedHashMap;Ljava/util/LinkedHashMap;?java/nio/file/LinkOption?exists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
?(Ljava/util/LinkedHashMap;)V
walkFileTreeE(Ljava/nio/file/Path;Ljava/nio/file/FileVisitor;)Ljava/nio/file/Path;	
?
java/lang/AssertionErrorvisitor threw exception*(Ljava/lang/String;Ljava/lang/Throwable;)V


impossibleLjava/io/IOException;locationjava/lang/RuntimeException"rethrow argument must not be null.(Ljava/lang/Object;)V

java/lang/ErrorN
reThrowLjava/lang/Deprecated;reThrowUncheckedfsync(Ljava/nio/file/Path;Z)Vjava/nio/file/OpenOption& java/nio/file/StandardOpenOption(READ"Ljava/nio/file/StandardOpenOption;*+	),java/nio/file/OpenOption;.WRITE0+	)1java/nio/channels/FileChannel3openP(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/FileChannel;56
47force(Z)V9:
4;
4:	>7com/groupbyinc/flux/common/apache/lucene/util/Constants@LINUXB	ACMAC_OS_XE	AF
??On Linux and MacOSX fsyncing a directory should not throw IOException, we just don't want to rely on that in production (undocumented). Got: ILjava/nio/channels/FileChannel;ioe
fileToSyncisDirspins=(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)Z>com/groupbyinc/flux/common/apache/lucene/store/FilterDirectoryQunwrapv(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;ST
RUBcom/groupbyinc/flux/common/apache/lucene/store/FileSwitchDirectoryW
getPrimaryDir<()Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;YZ
X[OP
]getSecondaryDir_Z
X`;com/groupbyinc/flux/common/apache/lucene/store/RAMDirectoryb:com/groupbyinc/flux/common/apache/lucene/store/FSDirectorydgetDirectoryf?
egO?
ifsdDLcom/groupbyinc/flux/common/apache/lucene/store/FileSwitchDirectory;java/lang/Exceptionm
toRealPath1([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path;op?q
spinsLinuxs?
texcLjava/lang/Exception;pathgetFileStore/(Ljava/nio/file/Path;)Ljava/nio/file/FileStore;yz
{tmpfs}java/nio/file/FileStoretype??
??equals(Ljava/lang/Object;)Z??
????
??/?
startsWith(Ljava/lang/String;)Z??
??getRoot????resolve((Ljava/lang/String;)Ljava/nio/file/Path;????getFileName??????sys?block?newDirectoryStream5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;??
??java/nio/file/DirectoryStream??,length()I??
???:queue?
rotational?newInputStreamF(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;??
??read??
??
?:device5Ljava/nio/file/DirectoryStream;Ljava/nio/file/DirectoryStream;storeLjava/nio/file/FileStore;devNamesysinfo
devsysinfomatchlenI
?{
getMountPoint-(Ljava/nio/file/FileStore;)Ljava/lang/String;??
?
getFileSystem()Ljava/nio/file/FileSystem;????java/nio/file/FileSystem?
getFileStores()Ljava/lang/Iterable;??
??fsmountsameMountPoint
? (?lastIndexOf(Ljava/lang/String;)I??
??	substring(II)Ljava/lang/String;??
??descindexdesiredAssertionStatus?1
|?!java/nio/charset/StandardCharsets?
w	??
V?
	?CodeLocalVariableTableLineNumberTable
ExceptionsLocalVariableTypeTable
StackMapTable	Signature-(Ljava/lang/Iterable<+Ljava/io/Closeable;>;)VR(Ljava/lang/Class<*>;Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/io/Reader;g(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Ljava/util/Collection;)V0(Ljava/util/Collection<+Ljava/nio/file/Path;>;)V?(Ljava/util/LinkedHashMap;[Ljava/nio/file/Path;)Ljava/util/LinkedHashMap;
DeprecatedRuntimeVisibleAnnotations
SourceFileInnerClasses1
?/*???????6*? ?#??$%?
LM?	!??EL*?-M,?3?,,?7?9N-?	-?;?:+??+?L???+?+?C??&)'?*+
DEFGE$ICJE?E$H?6
TVX Y&`)[+\1]5^8a;c?dDf??	'/?9B'??????K?6*? ?M??$%?
pq	K!??,*?-L+?3?+?7?9M,?	,?;?N??߱$''?FG,$I?,$H?xz{$~'}(+???/?9B'????
<=?S*?+?*+?P??QERE???
??
	ST?l"+?Z?`?f?`?iM?kY?mY*,?p?s?? "tu"vwxy???
??	Sz?(AN6*+??N-,??:6:??9Y-S???:??9Y-S???,,.,?>??A??A?Avw?tu<??A???.?????????,?3??;?)|?V????|?V?'?'???	????(+??M,?3?,?7??N*-???:???"'? 
?(??(???(??????"?$?'??$?/???/?'????????A	*+? ????	??	???
??	???GM+??N-?3?.-?7??:?*???:,??,?M???,?,?C??"(+'?4-
DE?G??G??EJE?G???6
???"?(?+?-?3?7?:?=?A?F??+?	'/?!??'/?'?????????A	*+? ????	??	???
???????6*? ???????
??	????**??L+?3?+?7??M,?,???N???"%'???*???*???"%&
)?!?/??/?'????????6*? ???????
?	????DL*??M,?3?+,?7??N-?-??W?:+??+?L???+?+?C??%('?**
DE??D??BJE?D???6
$&( )%0(+*,0-4.71:3>4C6??	'/??B'?????????"x??Y??*??L+?˚g??YϷ?M+?չ?N-?3?>-?7?	:,ڶ?????????????????W????Y,??????*;-??Z??x??l???;-??l???2?@AB;CCDUEZFdGhHkIwK??'??/?C??????Q+?N+M,?>6?@,2:?/???#?Y*??W?:?
Y??????*?)7:?*<
1?Q??Q???Q???&	NOQ)S7y:w<xIOO}?(???-????????	@A??<*??
Y??*??*??*??*??*??*???Y*? ??<JE?&	?????"?'?.?3???	!N?E
*?*?C???
JE???	??	???"	#N?s&*?$*??*??*??*???Y*? ???&JE???????%????"	$%???*?'Y?	?-??2S?8MN,?<,?K-?,?=?@:-?P?5,?=?.:N?:,?-?,?=?:-?P?,?=??AM?:???3?D?	?G????
Y??Y?HJ??,?????,??(,/' A' ISWZ'AKIlo?*S?Kp=L?M??N?2?? ?A?I?l?o?p?t????????????//???//'??4''
F'G'??4'''
??B?@??	OP??H*?VK*?X?"*?XL+?\?^?
+?a?^???*?c??*?e?*?e?h?j???klH???&	????+?2?4?;?F???%X@??	O??x*??rK?D??*?u?L?n?vwx???Dn?s???*?|L~+??????+??M,?????*??,????r????M*????????N:6-??::??:?3?>?7??:		????:

???,
???	:
??6????]????N:?P?B???8::?:?%????:?P?
???????????:?'??::??1??6	?!????:

?P???	?:		:	?:
?!????:?P???
?
???'k??'k????'???\ad'ARx'AR????'x???p??
?,??	h?t?>ktu?x??????\M??_J??bG??3v???h?t??r $'#(%.E2\3_4b5k6?7?8?9?:?<?=?5?=?@D3EAFRGxE?G??????N	??????'/?A?S'I'H'???????'''???????/??'@?
???????''?	???????''H'????????'''?yz??U*??L+??MN*???Ϲ-:?3?*?7??:,?Ŷ??-?	N?+????-?-?+??42??Ux?P??
K?I???2MN
RS2T>UBVHZJ]M_QaSd?%?????/?+???????x*??L+ն?=?
+?ݰ+?? ???
???jk
lmo?	????A??????????
5=?@??		




© 2015 - 2025 Weber Informatics LLC | Privacy Policy