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

There is a newer version: 59
Show newest version
????3?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
Entry
CHARSET_UTF_8Ljava/nio/charset/Charset;Ljava/lang/Deprecated;UTF_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/Iterator1hasNext()Z3425next()Ljava/lang/Object;7829java/io/Closeable;<=
addSuppressed-(Ljava/lang/Throwable;Ljava/lang/Throwable;)V?@
AreThrow(Ljava/lang/Throwable;)VCD
EtLjava/lang/Throwable;objectLjava/io/Closeable;i$Ljava/util/Iterator;*Ljava/lang/Iterable<+Ljava/io/Closeable;>;Ljava/lang/Iterable;thcloseWhileHandlingExceptionP$
Q?D
*S	exception
suppressedgetDecodingReaderA(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/io/Reader;java/nio/charset/CharsetY
newDecoder#()Ljava/nio/charset/CharsetDecoder;[\
Z]"java/nio/charset/CodingErrorAction_REPORT$Ljava/nio/charset/CodingErrorAction;ab	`cjava/nio/charset/CharsetDecodereonMalformedInputG(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;gh
fionUnmappableCharacterkh
fljava/io/BufferedReadernjava/io/InputStreamReaderp9(Ljava/io/InputStream;Ljava/nio/charset/CharsetDecoder;)Vr
qs(Ljava/io/Reader;)Vu
ovstreamLjava/io/InputStream;charSetcharSetDecoder!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;??
?WX
?
?java/lang/String?java/io/InputStream?java/io/Reader?readerLjava/io/Reader;clazzLjava/lang/Class<*>;Ljava/lang/Class;resourcesuccessdeleteFilesIgnoringExceptionsP(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;[Ljava/lang/String;)V[Ljava/lang/String;?8com/groupbyinc/flux/common/apache/lucene/store/Directory?
deleteFile(Ljava/lang/String;)V??
??ignorednamearr$len$Idir:Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;files([Ljava/nio/file/Path;)V(Ljava/util/Collection;)V??
?[Ljava/nio/file/Path;java/util/Collection??/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;>;Ljava/util/Collection;deleteFilesIfExist??
?deleteIfExists(Ljava/nio/file/Path;)Z??
??filermjava/util/LinkedHashMap?
?I(Ljava/util/LinkedHashMap;[Ljava/nio/file/Path;)Ljava/util/LinkedHashMap;??
?isEmpty?4
??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?8	?toAbsolutePath()Ljava/nio/file/Path;????-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??: ?getValue?8	?
?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;locationreThrowUncheckedD
java/lang/RuntimeExceptionjava/lang/ErrorD
fsync(Ljava/nio/file/Path;Z)Vjava/nio/file/OpenOption! java/nio/file/StandardOpenOption#READ"Ljava/nio/file/StandardOpenOption;%&	$'java/nio/file/OpenOption;)WRITE+&	$,java/nio/channels/FileChannel.openP(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/FileChannel;01
/2force(Z)V45
/6
/=	97com/groupbyinc/flux/common/apache/lucene/util/Constants;LINUX=	<>MAC_OS_X@	<A
??On Linux and MacOSX fsyncing a directory should not throw IOException, we just don't want to rely on that in production (undocumented). Got: D(Ljava/lang/Object;)VF

Gx2Ljava/nio/channels/FileChannel;ioe
fileToSyncisDirspins=(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)Z>com/groupbyinc/flux/common/apache/lucene/store/FilterDirectoryPunwrapv(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;RS
QTBcom/groupbyinc/flux/common/apache/lucene/store/FileSwitchDirectoryV
getPrimaryDir<()Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;XY
WZNO
\getSecondaryDir^Y
W_;com/groupbyinc/flux/common/apache/lucene/store/RAMDirectorya:com/groupbyinc/flux/common/apache/lucene/store/FSDirectorycgetDirectorye?
dfN?
hfsdDLcom/groupbyinc/flux/common/apache/lucene/store/FileSwitchDirectory;java/lang/Exceptionl
toRealPath1([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path;no?p
spinsLinuxr?
sexcLjava/lang/Exception;pathgetFileStore/(Ljava/nio/file/Path;)Ljava/nio/file/FileStore;xy
ztmpfs|java/nio/file/FileStore~type??
?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
devsysinfomatchlen
?z
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?4
?!java/nio/charset/StandardCharsets?	??
	?
Z?	?
DeprecatedRuntimeVisibleAnnotationsCodeLocalVariableTableLineNumberTable
ExceptionsLocalVariableTypeTable
StackMapTable	Signature-(Ljava/lang/Iterable<+Ljava/io/Closeable;>;)VR(Ljava/lang/Class<*>;Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/io/Reader;0(Ljava/util/Collection<+Ljava/nio/file/Path;>;)V?(Ljava/util/LinkedHashMap;[Ljava/nio/file/Path;)Ljava/util/LinkedHashMap;
SourceFileInnerClasses1
???/*????G??6*?#?&??'(?
TU?	$??@L*?0M,?6?,,?:??:+?B+?L???+?F?&)*?4+
GHIJ	2KL@'N>OH?@'M?2\^` a&h)c+d1e5f8i;k?l??	*2??N??߱$'*?*(GHIJ$KL,'N?,'M?~??$?'?(?+???2???A??A?Az?xy<??A???*
????????,?3??;?)?Z?????Z?*?*????????&+M,?>6?,2:*???:????*?H?H?#?? ??K?&??&????????%??(???????*??????6*?#???????
??	????**??L+?6?+?:??M,?,???N???"%*?*&?H??"KL*???*??????"?%?&?)??!?2??2?*????????6*?#???????
???	?????L*??M,?6?+,?:??N-?-??W?:+?B+?L???+?F?%(*?4*
GH??	1KL???=OH?????2 	%(*0
47:>??	*2??B*?????????x??Y??*??L+?˚g??YϷ?M+?չ?N-?6?>-?:?	:,ڶ?????????????????W????Y,??????4;-??'DKLZ??x??l???;-??l???" ;!h&k'w)??'??2?C??????Q+?N+M,?>6?@,2:?/???#?Y*??W?:?
Y??????*?)7:?H<
1?I??	F??CK?Q??Q???Q???&	,-/)17W:U<VI-O[?(???-????????	CD?Y*?*??*??*???OH?efgik??	D?s&*?$*??*??*??*???Y*????&OH?stuwxz%|?	 ???*?"Y?	?(??-S?3MN,?7,?K-?,?8?@:-?T?5,?8?.:N?:,?-?,?8?:-?T?,?8??AM?:?:?3???	?B????
Y??Y?CE??,???H??,??(,/* A* ISWZ*AKIlo?>1IH\IHS?Jp=K?L??M?2?? ?A?I?l?o?p?t????????????**???**$??/**
F*G*??/***
??B?@??	NO??H*?UK*?W?"*?WL+?[?]?
+?`?]???*?b??*?d?*?d?g?i???jkH???&	????+?2?4?;?F???%W@??	N??x*??qK????*?t?L?m?uvw?????????Dm?r??E?*?{L}+??????+??M,?????*??,????q????M*????????N:6-??::??:?6?>?:??:		????:

???,
???	:
??6????]????N:?T?B???8::?:?%????:?T?
???????????:?"??::??1??6	?!????:

?T???	?:		:	?:
?!????:?T???
?
???*k??*k????*???\ad*ARx*AR????*x??????
?,??	tEKL?IHIHh?x?fIH
?IH>kxy?w??????\M??_J??bG??3v???h?x??r?????#?%?E?\?_?b?k????????????????????3?A?R?x????????N	?????*2?A?S*I*H*??????***??????/??*@?
??????**?	??????**H*???????***?xy?U*??L+??MN*???͹0:?6?*?:?:,?ö??-?	N?+????-?-?+??>2??1KLUw?P??
K?I???2??
2>BH
J
MQS?%???2?+??????x*??L+Ӷ?=?
+?۰+?? ???
???
?	????K ????:???????5=E?@??		




© 2015 - 2025 Weber Informatics LLC | Privacy Policy