
com.groupbyinc.flux.common.apache.lucene.util.SPIClassIterator.class Maven / Gradle / Ivy
???? 3( >com/groupbyinc/flux/common/apache/lucene/util/SPIClassIterator ULjava/lang/Object;Ljava/util/Iterator;>; java/lang/Object java/util/Iterator SPIClassIterator.java META_INF_SERVICES Ljava/lang/String; META-INF/services/ clazz Ljava/lang/Class; Ljava/lang/Class; loader Ljava/lang/ClassLoader; profilesEnum Ljava/util/Enumeration; 'Ljava/util/Enumeration;
linesIterator Ljava/util/Iterator; (Ljava/util/Iterator; $assertionsDisabled Z get S(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/lucene/util/SPIClassIterator; java/lang/Thread
currentThread ()Ljava/lang/Thread;
getContextClassLoader ()Ljava/lang/ClassLoader; " #
$ java/lang/Class & getClassLoader ( #
' ) java/lang/ClassLoader + +(Ljava/lang/Class;Ljava/lang/ClassLoader;)V - .
/ cl j(Ljava/lang/Class;Ljava/lang/ClassLoader;)Lcom/groupbyinc/flux/common/apache/lucene/util/SPIClassIterator; isParentClassLoader 1(Ljava/lang/ClassLoader;Ljava/lang/ClassLoader;)Z java/lang/SecurityException 5 getParent 7 #
, 8 se Ljava/lang/SecurityException; parent child java/io/IOException > ()V - @
A
java/util/Objects D requireNonNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; F G
E H
J M java/lang/StringBuilder O
P A append -(Ljava/lang/String;)Ljava/lang/StringBuilder; R S
P T getName ()Ljava/lang/String; V W
' X toString Z W
P [ getResources +(Ljava/lang/String;)Ljava/util/Enumeration; ] ^
, _ a #java/util/ServiceConfigurationError c $Error loading SPI profiles for type e from classpath g *(Ljava/lang/String;Ljava/lang/Throwable;)V - i
d j java/util/Collections l emptySet ()Ljava/util/Set; n o
m p
java/util/Set r iterator ()Ljava/util/Iterator; t u s v x fullName ioe Ljava/io/IOException; this ELcom/groupbyinc/flux/common/apache/lucene/util/SPIClassIterator; @Lcom/groupbyinc/flux/common/apache/lucene/util/SPIClassIterator; loadNextProfile ()Z java/util/ArrayList ? java/util/Enumeration ? hasMoreElements ? ? ? ? clear ? @
? ?
? A nextElement ()Ljava/lang/Object; ? ? ? ? java/net/URL ?
openStream ()Ljava/io/InputStream; ? ?
? ? java/io/BufferedReader ? java/io/InputStreamReader ? !java/nio/charset/StandardCharsets ? UTF_8 Ljava/nio/charset/Charset; ? ? ? ? 2(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V - ?
? ? (Ljava/io/Reader;)V - ?
? ? java/io/InputStream ? readLine ? W
? ? java/lang/String ? indexOf (I)I ? ?
? ? substring (II)Ljava/lang/String; ? ?
? ? trim ? W
? ? length ()I ? ?
? ? add (Ljava/lang/Object;)Z ? ?
? ? java/io/Closeable ? 5com/groupbyinc/flux/common/apache/lucene/util/IOUtils ? close ([Ljava/io/Closeable;)V ? ?
? ? closeWhileHandlingException ? ?
? ? java/lang/Throwable ? 'Error loading SPI class list from URL: ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; R ?
P ? isEmpty ? ?
? ?
? v pos I reader Ljava/io/BufferedReader; line in Ljava/io/InputStream; success url Ljava/net/URL; lines )Ljava/util/ArrayList; Ljava/util/ArrayList; hasNext ? ? ? ? ?
? next ()Ljava/lang/Class; java/lang/ClassNotFoundException ?
? java/util/NoSuchElementException ?
? A ? java/lang/AssertionError ?
? A ? ? ? forName =(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; ? ?
' ?
asSubclass $(Ljava/lang/Class;)Ljava/lang/Class; ? ?
' ? java/util/Locale ROOT Ljava/util/Locale; iAn SPI class of type %s with classname %s does not exist, please fix the file '%s%1$s' in your classpath. format K(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
?
(Ljava/lang/String;)V -
d
cnfe "Ljava/lang/ClassNotFoundException; c remove 'java/lang/UnsupportedOperationException
A ? ?
desiredAssertionStatus ?
'
ConstantValue Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable s(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/lucene/util/SPIClassIterator; ?(Ljava/lang/Class;Ljava/lang/ClassLoader;)Lcom/groupbyinc/flux/common/apache/lucene/util/SPIClassIterator; 0(Ljava/lang/Class;Ljava/lang/ClassLoader;)V ()Ljava/lang/Class<+TS;>;
SourceFile 1
z ? !? %L+? *? *L? Y*+? 0?
1
! 5 6 7 9" ? , # 2 P
? Y*+? 0?
! > $ 3 4 ? +M,? ,*? ?,? 9M????M? 6
6 * 1 : ; <