public final class org.xml.sax.helpers.XMLReaderFactory
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.xml.sax.helpers.XMLReaderFactory
super_class: java.lang.Object
{
private static final java.lang.String property;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "org.xml.sax.driver"
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/xml/sax/helpers/XMLReaderFactory;
public static org.xml.sax.XMLReader createXMLReader();
descriptor: ()Lorg/xml/sax/XMLReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=0
0: aconst_null
astore 0
start local 0 1: invokestatic jdk.xml.internal.SecuritySupport.getClassLoader:()Ljava/lang/ClassLoader;
astore 1
start local 1 2: ldc "org.xml.sax.driver"
invokestatic jdk.xml.internal.SecuritySupport.getSystemProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
3: goto 5
4: StackMap locals: java.lang.String java.lang.ClassLoader
StackMap stack: java.lang.RuntimeException
pop
5: StackMap locals:
StackMap stack:
aload 0
ifnonnull 9
6: ldc Lorg/xml/sax/XMLReader;
aload 1
invokestatic org.xml.sax.helpers.XMLReaderFactory.findServiceProvider:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/lang/Object;
checkcast org.xml.sax.XMLReader
astore 2
start local 2 7: aload 2
ifnull 9
8: aload 2
areturn
end local 2 9: StackMap locals:
StackMap stack:
aload 0
ifnonnull 11
10: aload 1
invokestatic org.xml.sax.helpers.XMLReaderFactory.jarLookup:(Ljava/lang/ClassLoader;)Ljava/lang/String;
astore 0
11: StackMap locals:
StackMap stack:
aload 0
ifnonnull 13
12: new com.sun.org.apache.xerces.internal.parsers.SAXParser
dup
invokespecial com.sun.org.apache.xerces.internal.parsers.SAXParser.<init>:()V
areturn
13: StackMap locals:
StackMap stack:
aload 1
aload 0
invokestatic org.xml.sax.helpers.XMLReaderFactory.loadClass:(Ljava/lang/ClassLoader;Ljava/lang/String;)Lorg/xml/sax/XMLReader;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 14 0 className Ljava/lang/String;
2 14 1 cl Ljava/lang/ClassLoader;
7 9 2 provider Lorg/xml/sax/XMLReader;
Exception table:
from to target type
2 3 4 Class java.lang.RuntimeException
Exceptions:
throws org.xml.sax.SAXException
public static org.xml.sax.XMLReader createXMLReader(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/xml/sax/XMLReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic jdk.xml.internal.SecuritySupport.getClassLoader:()Ljava/lang/ClassLoader;
aload 0
invokestatic org.xml.sax.helpers.XMLReaderFactory.loadClass:(Ljava/lang/ClassLoader;Ljava/lang/String;)Lorg/xml/sax/XMLReader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 className Ljava/lang/String;
Exceptions:
throws org.xml.sax.SAXException
MethodParameters:
Name Flags
className
private static org.xml.sax.XMLReader loadClass(java.lang.ClassLoader, java.lang.String);
descriptor: (Ljava/lang/ClassLoader;Ljava/lang/String;)Lorg/xml/sax/XMLReader;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: ldc Lorg/xml/sax/XMLReader;
aload 0
aload 1
invokestatic org.xml.sax.helpers.NewInstance.newInstance:(Ljava/lang/Class;Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/lang/Object;
checkcast org.xml.sax.XMLReader
1: areturn
2: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
astore 2
start local 2 3: new org.xml.sax.SAXException
dup
new java.lang.StringBuilder
dup
ldc "SAX2 driver class "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc " not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
5: invokespecial org.xml.sax.SAXException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 2 6: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 2
start local 2 7: new org.xml.sax.SAXException
dup
new java.lang.StringBuilder
dup
ldc "SAX2 driver class "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: ldc " found but cannot be loaded"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
9: invokespecial org.xml.sax.SAXException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 2 10: StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 2
start local 2 11: new org.xml.sax.SAXException
dup
new java.lang.StringBuilder
dup
ldc "SAX2 driver class "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: ldc " loaded but cannot be instantiated (no empty public constructor?)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: aload 2
14: invokespecial org.xml.sax.SAXException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 2 15: StackMap locals:
StackMap stack: java.lang.ClassCastException
astore 2
start local 2 16: new org.xml.sax.SAXException
dup
new java.lang.StringBuilder
dup
ldc "SAX2 driver class "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
17: ldc " does not implement XMLReader"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
18: invokespecial org.xml.sax.SAXException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 loader Ljava/lang/ClassLoader;
0 19 1 className Ljava/lang/String;
3 6 2 e1 Ljava/lang/ClassNotFoundException;
7 10 2 e2 Ljava/lang/IllegalAccessException;
11 15 2 e3 Ljava/lang/InstantiationException;
16 19 2 e4 Ljava/lang/ClassCastException;
Exception table:
from to target type
0 1 2 Class java.lang.ClassNotFoundException
0 1 6 Class java.lang.IllegalAccessException
0 1 10 Class java.lang.InstantiationException
0 1 15 Class java.lang.ClassCastException
Exceptions:
throws org.xml.sax.SAXException
MethodParameters:
Name Flags
loader
className
private static java.lang.String jarLookup(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ClassLoader
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: ldc "META-INF/services/org.xml.sax.driver"
astore 3
start local 3 3: aload 1
aload 3
invokestatic jdk.xml.internal.SecuritySupport.getResourceAsStream:(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/io/InputStream;
astore 4
start local 4 4: aload 4
ifnonnull 6
5: aconst_null
aload 3
invokestatic jdk.xml.internal.SecuritySupport.getResourceAsStream:(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/io/InputStream;
astore 4
6: StackMap locals: java.lang.ClassLoader java.lang.ClassLoader java.lang.String java.lang.String java.io.InputStream
StackMap stack:
aload 4
ifnull 12
7: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 4
ldc "UTF8"
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/lang/String;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 5
start local 5 8: aload 5
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 2
9: aload 4
invokevirtual java.io.InputStream.close:()V
end local 5 10: goto 12
end local 4 StackMap locals: java.lang.ClassLoader java.lang.ClassLoader java.lang.String java.lang.String
StackMap stack: java.io.IOException
11: pop
12: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 loader Ljava/lang/ClassLoader;
1 13 1 cl Ljava/lang/ClassLoader;
2 13 2 clsFromJar Ljava/lang/String;
3 13 3 service Ljava/lang/String;
4 11 4 in Ljava/io/InputStream;
8 10 5 reader Ljava/io/BufferedReader;
Exception table:
from to target type
3 10 11 Class java.io.IOException
MethodParameters:
Name Flags
loader final
private static <T> T findServiceProvider(java.lang.Class<T>, java.lang.ClassLoader);
descriptor: (Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ClassLoader
astore 2
start local 2 1: aload 0
aload 2
invokedynamic run(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/xml/sax/helpers/XMLReaderFactory.lambda$0(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/lang/Object; (6)
()Ljava/lang/Object;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
2: areturn
3: StackMap locals: java.lang.Class java.lang.ClassLoader java.lang.ClassLoader
StackMap stack: java.util.ServiceConfigurationError
astore 3
start local 3 4: new java.lang.RuntimeException
dup
5: new java.lang.StringBuilder
dup
ldc "Provider for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " cannot be created"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
6: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
astore 4
start local 4 7: new org.xml.sax.SAXException
dup
new java.lang.StringBuilder
dup
ldc "Provider for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " cannot be created"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial org.xml.sax.SAXException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 type Ljava/lang/Class<TT;>;
0 8 1 loader Ljava/lang/ClassLoader;
1 8 2 cl Ljava/lang/ClassLoader;
4 8 3 e Ljava/util/ServiceConfigurationError;
7 8 4 x Ljava/lang/RuntimeException;
Exception table:
from to target type
1 2 3 Class java.util.ServiceConfigurationError
Exceptions:
throws org.xml.sax.SAXException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;Ljava/lang/ClassLoader;)TT;
MethodParameters:
Name Flags
type final
loader final
private static java.lang.Object lambda$0(java.lang.Class, java.lang.ClassLoader);
descriptor: (Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=4, args_size=2
0: aload 0
aload 1
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
astore 2
start local 2 1: aload 2
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 3
start local 3 2: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 4
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
areturn
4: StackMap locals: java.util.ServiceLoader java.util.Iterator
StackMap stack:
aconst_null
areturn
end local 3 end local 2 LocalVariableTable:
Start End Slot Name Signature
1 5 2 serviceLoader Ljava/util/ServiceLoader<TT;>;
2 5 3 iterator Ljava/util/Iterator<TT;>;
}
SourceFile: "XMLReaderFactory.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "9")