public class org.apache.xml.utils.XMLReaderManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.xml.utils.XMLReaderManager
super_class: java.lang.Object
{
private static final java.lang.String NAMESPACES_FEATURE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "http://xml.org/sax/features/namespaces"
private static final java.lang.String NAMESPACE_PREFIXES_FEATURE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "http://xml.org/sax/features/namespace-prefixes"
private static final org.apache.xml.utils.XMLReaderManager m_singletonManager;
descriptor: Lorg/apache/xml/utils/XMLReaderManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static javax.xml.parsers.SAXParserFactory m_parserFactory;
descriptor: Ljavax/xml/parsers/SAXParserFactory;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.lang.ThreadLocal m_readers;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0002) ACC_PRIVATE
private java.util.Hashtable m_inUse;
descriptor: Ljava/util/Hashtable;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.apache.xml.utils.XMLReaderManager
dup
invokespecial org.apache.xml.utils.XMLReaderManager.<init>:()V
1: putstatic org.apache.xml.utils.XMLReaderManager.m_singletonManager:Lorg/apache/xml/utils/XMLReaderManager;
2: return
LocalVariableTable:
Start End Slot Name Signature
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/apache/xml/utils/XMLReaderManager;
public static org.apache.xml.utils.XMLReaderManager getInstance();
descriptor: ()Lorg/apache/xml/utils/XMLReaderManager;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.xml.utils.XMLReaderManager.m_singletonManager:Lorg/apache/xml/utils/XMLReaderManager;
areturn
LocalVariableTable:
Start End Slot Name Signature
public synchronized org.xml.sax.XMLReader getXMLReader();
descriptor: ()Lorg/xml/sax/XMLReader;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.xml.utils.XMLReaderManager.m_readers:Ljava/lang/ThreadLocal;
ifnonnull 2
1: aload 0
new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putfield org.apache.xml.utils.XMLReaderManager.m_readers:Ljava/lang/ThreadLocal;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.xml.utils.XMLReaderManager.m_inUse:Ljava/util/Hashtable;
ifnonnull 4
3: aload 0
new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield org.apache.xml.utils.XMLReaderManager.m_inUse:Ljava/util/Hashtable;
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.xml.utils.XMLReaderManager.m_readers:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast org.xml.sax.XMLReader
astore 1
start local 1 5: aload 1
ifnull 6
iconst_1
goto 7
StackMap locals: org.xml.sax.XMLReader
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: istore 2
start local 2 8: iload 2
ifeq 9
aload 0
getfield org.apache.xml.utils.XMLReaderManager.m_inUse:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
if_acmpne 34
9: StackMap locals: int
StackMap stack:
invokestatic org.xml.sax.helpers.XMLReaderFactory.createXMLReader:()Lorg/xml/sax/XMLReader;
astore 1
10: goto 19
StackMap locals:
StackMap stack: java.lang.Exception
11: pop
12: getstatic org.apache.xml.utils.XMLReaderManager.m_parserFactory:Ljavax/xml/parsers/SAXParserFactory;
ifnonnull 15
13: invokestatic javax.xml.parsers.SAXParserFactory.newInstance:()Ljavax/xml/parsers/SAXParserFactory;
putstatic org.apache.xml.utils.XMLReaderManager.m_parserFactory:Ljavax/xml/parsers/SAXParserFactory;
14: getstatic org.apache.xml.utils.XMLReaderManager.m_parserFactory:Ljavax/xml/parsers/SAXParserFactory;
iconst_1
invokevirtual javax.xml.parsers.SAXParserFactory.setNamespaceAware:(Z)V
15: StackMap locals:
StackMap stack:
getstatic org.apache.xml.utils.XMLReaderManager.m_parserFactory:Ljavax/xml/parsers/SAXParserFactory;
invokevirtual javax.xml.parsers.SAXParserFactory.newSAXParser:()Ljavax/xml/parsers/SAXParser;
invokevirtual javax.xml.parsers.SAXParser.getXMLReader:()Lorg/xml/sax/XMLReader;
astore 1
16: goto 19
StackMap locals:
StackMap stack: javax.xml.parsers.ParserConfigurationException
17: astore 3
start local 3 18: aload 3
athrow
end local 3 19: StackMap locals:
StackMap stack:
aload 1
ldc "http://xml.org/sax/features/namespaces"
iconst_1
invokeinterface org.xml.sax.XMLReader.setFeature:(Ljava/lang/String;Z)V
20: aload 1
ldc "http://xml.org/sax/features/namespace-prefixes"
iconst_0
invokeinterface org.xml.sax.XMLReader.setFeature:(Ljava/lang/String;Z)V
21: goto 30
StackMap locals:
StackMap stack: org.xml.sax.SAXException
22: pop
23: goto 30
StackMap locals:
StackMap stack: javax.xml.parsers.ParserConfigurationException
24: astore 3
start local 3 25: new org.xml.sax.SAXException
dup
aload 3
invokespecial org.xml.sax.SAXException.<init>:(Ljava/lang/Exception;)V
athrow
end local 3 26: StackMap locals:
StackMap stack: javax.xml.parsers.FactoryConfigurationError
astore 3
start local 3 27: new org.xml.sax.SAXException
dup
aload 3
invokevirtual javax.xml.parsers.FactoryConfigurationError.toString:()Ljava/lang/String;
invokespecial org.xml.sax.SAXException.<init>:(Ljava/lang/String;)V
athrow
end local 3 28: StackMap locals:
StackMap stack: java.lang.NoSuchMethodError
pop
goto 30
29: StackMap locals:
StackMap stack: java.lang.AbstractMethodError
pop
30: StackMap locals:
StackMap stack:
iload 2
ifne 35
31: aload 0
getfield org.apache.xml.utils.XMLReaderManager.m_readers:Ljava/lang/ThreadLocal;
aload 1
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
32: aload 0
getfield org.apache.xml.utils.XMLReaderManager.m_inUse:Ljava/util/Hashtable;
aload 1
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
33: goto 35
34: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.xml.utils.XMLReaderManager.m_inUse:Ljava/util/Hashtable;
aload 1
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
35: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lorg/apache/xml/utils/XMLReaderManager;
5 36 1 reader Lorg/xml/sax/XMLReader;
8 36 2 threadHasReader Z
18 19 3 pce Ljavax/xml/parsers/ParserConfigurationException;
25 26 3 ex Ljavax/xml/parsers/ParserConfigurationException;
27 28 3 ex1 Ljavax/xml/parsers/FactoryConfigurationError;
Exception table:
from to target type
9 10 11 Class java.lang.Exception
12 16 17 Class javax.xml.parsers.ParserConfigurationException
19 21 22 Class org.xml.sax.SAXException
9 23 24 Class javax.xml.parsers.ParserConfigurationException
9 23 26 Class javax.xml.parsers.FactoryConfigurationError
9 23 28 Class java.lang.NoSuchMethodError
9 23 29 Class java.lang.AbstractMethodError
Exceptions:
throws org.xml.sax.SAXException
public synchronized void releaseXMLReader(org.xml.sax.XMLReader);
descriptor: (Lorg/xml/sax/XMLReader;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.xml.utils.XMLReaderManager.m_readers:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
aload 1
if_acmpne 2
aload 1
ifnull 2
1: aload 0
getfield org.apache.xml.utils.XMLReaderManager.m_inUse:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/xml/utils/XMLReaderManager;
0 3 1 reader Lorg/xml/sax/XMLReader;
MethodParameters:
Name Flags
reader
}
SourceFile: "XMLReaderManager.java"