public final class com.sun.org.apache.xml.internal.serializer.SerializerFactory
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.org.apache.xml.internal.serializer.SerializerFactory
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 // com.sun.org.apache.xml.internal.serializer.SerializerFactory this
0: .line 66
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 68
return
end local 0 // com.sun.org.apache.xml.internal.serializer.SerializerFactory this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/xml/internal/serializer/SerializerFactory;
public static com.sun.org.apache.xml.internal.serializer.Serializer getSerializer(java.util.Properties);
descriptor: (Ljava/util/Properties;)Lcom/sun/org/apache/xml/internal/serializer/Serializer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=7, args_size=1
start local 0 // java.util.Properties format
0: .line 91
aload 0 /* format */
ldc "method"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2 /* method */
start local 2 // java.lang.String method
1: .line 93
aload 2 /* method */
ifnonnull 7
2: .line 94
getstatic com.sun.org.apache.xml.internal.serializer.utils.Utils.messages:Lcom/sun/org/apache/xml/internal/serializer/utils/Messages;
3: .line 95
ldc "ER_FACTORY_PROPERTY_MISSING"
4: .line 96
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "method"
aastore
5: .line 94
invokevirtual com.sun.org.apache.xml.internal.serializer.utils.Messages.createMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 3 /* msg */
start local 3 // java.lang.String msg
6: .line 97
new java.lang.IllegalArgumentException
dup
aload 3 /* msg */
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 // java.lang.String msg
7: .line 101
StackMap locals: java.util.Properties top java.lang.String
StackMap stack:
aload 0 /* format */
ldc "{http://xml.apache.org/xalan}content-handler"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
8: .line 100
astore 3 /* className */
start local 3 // java.lang.String className
9: .line 104
aload 3 /* className */
ifnonnull 20
10: .line 108
aload 2 /* method */
invokestatic com.sun.org.apache.xml.internal.serializer.OutputPropertiesFactory.getDefaultMethodProperties:(Ljava/lang/String;)Ljava/util/Properties;
11: .line 107
astore 4 /* methodDefaults */
start local 4 // java.util.Properties methodDefaults
12: .line 110
aload 4 /* methodDefaults */
ldc "{http://xml.apache.org/xalan}content-handler"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
13: .line 109
astore 3 /* className */
14: .line 111
aload 3 /* className */
ifnonnull 20
15: .line 112
getstatic com.sun.org.apache.xml.internal.serializer.utils.Utils.messages:Lcom/sun/org/apache/xml/internal/serializer/utils/Messages;
16: .line 113
ldc "ER_FACTORY_PROPERTY_MISSING"
17: .line 114
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "{http://xml.apache.org/xalan}content-handler"
aastore
18: .line 112
invokevirtual com.sun.org.apache.xml.internal.serializer.utils.Messages.createMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 5 /* msg */
start local 5 // java.lang.String msg
19: .line 115
new java.lang.IllegalArgumentException
dup
aload 5 /* msg */
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 5 // java.lang.String msg
end local 4 // java.util.Properties methodDefaults
20: .line 122
StackMap locals: java.lang.String
StackMap stack:
aload 3 /* className */
iconst_1
invokestatic com.sun.org.apache.xalan.internal.utils.ObjectFactory.findProviderClass:(Ljava/lang/String;Z)Ljava/lang/Class;
astore 4 /* cls */
start local 4 // java.lang.Class cls
21: .line 126
aload 4 /* cls */
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
astore 5 /* obj */
start local 5 // java.lang.Object obj
22: .line 128
aload 5 /* obj */
instanceof com.sun.org.apache.xml.internal.serializer.SerializationHandler
ifeq 26
23: .line 131
aload 5 /* obj */
checkcast com.sun.org.apache.xml.internal.serializer.Serializer
astore 1 /* ser */
start local 1 // com.sun.org.apache.xml.internal.serializer.Serializer ser
24: .line 132
aload 1 /* ser */
aload 0 /* format */
invokeinterface com.sun.org.apache.xml.internal.serializer.Serializer.setOutputFormat:(Ljava/util/Properties;)V
25: .line 133
goto 43
end local 1 // com.sun.org.apache.xml.internal.serializer.Serializer ser
26: .line 140
StackMap locals: java.lang.Class java.lang.Object
StackMap stack:
aload 5 /* obj */
instanceof org.xml.sax.ContentHandler
ifeq 35
27: .line 149
ldc "com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler"
astore 3 /* className */
28: .line 150
aload 3 /* className */
iconst_1
invokestatic com.sun.org.apache.xalan.internal.utils.ObjectFactory.findProviderClass:(Ljava/lang/String;Z)Ljava/lang/Class;
astore 4 /* cls */
29: .line 152
aload 4 /* cls */
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.sun.org.apache.xml.internal.serializer.SerializationHandler
30: .line 151
astore 6 /* sh */
start local 6 // com.sun.org.apache.xml.internal.serializer.SerializationHandler sh
31: .line 153
aload 6 /* sh */
aload 5 /* obj */
checkcast org.xml.sax.ContentHandler
invokeinterface com.sun.org.apache.xml.internal.serializer.SerializationHandler.setContentHandler:(Lorg/xml/sax/ContentHandler;)V
32: .line 154
aload 6 /* sh */
aload 0 /* format */
invokeinterface com.sun.org.apache.xml.internal.serializer.SerializationHandler.setOutputFormat:(Ljava/util/Properties;)V
33: .line 156
aload 6 /* sh */
astore 1 /* ser */
end local 6 // com.sun.org.apache.xml.internal.serializer.SerializationHandler sh
start local 1 // com.sun.org.apache.xml.internal.serializer.Serializer ser
34: .line 157
goto 43
end local 1 // com.sun.org.apache.xml.internal.serializer.Serializer ser
35: .line 162
StackMap locals:
StackMap stack:
new java.lang.Exception
dup
36: .line 163
getstatic com.sun.org.apache.xml.internal.serializer.utils.Utils.messages:Lcom/sun/org/apache/xml/internal/serializer/utils/Messages;
37: .line 164
ldc "ER_SERIALIZER_NOT_CONTENTHANDLER"
38: .line 165
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3 /* className */
aastore
39: .line 163
invokevirtual com.sun.org.apache.xml.internal.serializer.utils.Messages.createMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
40: .line 162
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;)V
athrow
end local 5 // java.lang.Object obj
end local 4 // java.lang.Class cls
end local 3 // java.lang.String className
end local 2 // java.lang.String method
41: .line 170
StackMap locals: java.util.Properties
StackMap stack: java.lang.Exception
astore 2 /* e */
start local 2 // java.lang.Exception e
42: .line 172
new com.sun.org.apache.xml.internal.serializer.utils.WrappedRuntimeException
dup
aload 2 /* e */
invokespecial com.sun.org.apache.xml.internal.serializer.utils.WrappedRuntimeException.<init>:(Ljava/lang/Exception;)V
athrow
end local 2 // java.lang.Exception e
start local 1 // com.sun.org.apache.xml.internal.serializer.Serializer ser
43: .line 176
StackMap locals: com.sun.org.apache.xml.internal.serializer.Serializer
StackMap stack:
aload 1 /* ser */
areturn
end local 1 // com.sun.org.apache.xml.internal.serializer.Serializer ser
end local 0 // java.util.Properties format
LocalVariableTable:
Start End Slot Name Signature
0 44 0 format Ljava/util/Properties;
24 26 1 ser Lcom/sun/org/apache/xml/internal/serializer/Serializer;
34 35 1 ser Lcom/sun/org/apache/xml/internal/serializer/Serializer;
43 44 1 ser Lcom/sun/org/apache/xml/internal/serializer/Serializer;
1 41 2 method Ljava/lang/String;
6 7 3 msg Ljava/lang/String;
9 41 3 className Ljava/lang/String;
12 20 4 methodDefaults Ljava/util/Properties;
19 20 5 msg Ljava/lang/String;
21 41 4 cls Ljava/lang/Class<*>;
22 41 5 obj Ljava/lang/Object;
31 34 6 sh Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;
42 43 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 41 41 Class java.lang.Exception
MethodParameters:
Name Flags
format
}
SourceFile: "SerializerFactory.java"