public class com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser
super_class: java.lang.Object
{
private java.lang.String m_encoding;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.io.PushbackReader m_pushbackReader;
descriptor: Ljava/io/PushbackReader;
flags: (0x0002) ACC_PRIVATE
private boolean ;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.String xmlDecl;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
static java.lang.String gt16;
descriptor: Ljava/lang/String;
flags: (0x0008) ACC_STATIC
static java.lang.String utf16Decl;
descriptor: Ljava/lang/String;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: aconst_null
putstatic com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.gt16:Ljava/lang/String;
1: aconst_null
putstatic com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.utf16Decl:Ljava/lang/String;
2: new java.lang.String
dup
ldc ">"
ldc "utf-16"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokespecial java.lang.String.<init>:([B)V
putstatic com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.gt16:Ljava/lang/String;
3: new java.lang.String
dup
ldc "<?xml"
ldc "utf-16"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokespecial java.lang.String.<init>:([B)V
putstatic com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.utf16Decl:Ljava/lang/String;
4: goto 6
StackMap locals:
StackMap stack: java.lang.Exception
5: pop
6: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 4 5 Class java.lang.Exception
public void <init>(java.io.PushbackReader);
descriptor: (Ljava/io/PushbackReader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
2: aload 0
aload 1
putfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_pushbackReader:Ljava/io/PushbackReader;
3: aload 0
ldc "utf-8"
putfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
4: aload 0
iconst_0
putfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_hasHeader:Z
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/xml/internal/messaging/saaj/util/XMLDeclarationParser;
0 6 1 pr Ljava/io/PushbackReader;
MethodParameters:
Name Flags
pr
public java.lang.String getEncoding();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/messaging/saaj/util/XMLDeclarationParser;
public java.lang.String getXmlDeclaration();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/messaging/saaj/util/XMLDeclarationParser;
public void parse();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=13, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 3: goto 8
4: StackMap locals: int int java.lang.StringBuilder
StackMap stack:
aload 3
iload 1
i2c
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
5: iinc 2 1
6: iload 1
bipush 62
if_icmpne 8
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_pushbackReader:Ljava/io/PushbackReader;
invokevirtual java.io.PushbackReader.read:()I
dup
istore 1
iconst_m1
if_icmpne 4
9: StackMap locals:
StackMap stack:
iload 2
istore 4
start local 4 10: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 11: iconst_0
istore 6
start local 6 12: iconst_0
istore 7
start local 7 13: aload 5
getstatic com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.utf16Decl:Ljava/lang/String;
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 8
start local 8 14: iload 8
iconst_m1
if_icmple 17
15: iconst_1
istore 6
16: goto 20
17: StackMap locals: com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser int int java.lang.StringBuilder int java.lang.String int int int
StackMap stack:
aload 5
ldc "<?xml"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 8
18: iload 8
iconst_m1
if_icmple 20
19: iconst_1
istore 7
20: StackMap locals:
StackMap stack:
iload 6
ifne 23
iload 7
ifne 23
21: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_pushbackReader:Ljava/io/PushbackReader;
aload 5
invokevirtual java.lang.String.toCharArray:()[C
iconst_0
iload 4
invokevirtual java.io.PushbackReader.unread:([CII)V
22: return
23: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_hasHeader:Z
24: iload 6
ifeq 28
25: aload 0
new java.lang.String
dup
aload 5
invokevirtual java.lang.String.getBytes:()[B
ldc "utf-16"
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
putfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
26: aload 0
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
ldc "<"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
putfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
27: goto 29
28: StackMap locals:
StackMap stack:
aload 0
aload 5
putfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
29: StackMap locals:
StackMap stack:
iload 8
ifeq 31
30: new java.io.IOException
dup
ldc "Unexpected characters before XML declaration"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
31: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
ldc "version"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 9
start local 9 32: iload 9
iconst_m1
if_icmpne 34
33: new java.io.IOException
dup
ldc "Mandatory 'version' attribute Missing in XML declaration"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
34: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
ldc "encoding"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 10
start local 10 35: iload 10
iconst_m1
if_icmpne 37
36: return
37: StackMap locals: int
StackMap stack:
iload 9
iload 10
if_icmple 39
38: new java.io.IOException
dup
ldc "The 'version' attribute should preceed the 'encoding' attribute in an XML Declaration"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
39: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
ldc "standalone"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 11
start local 11 40: iload 11
iconst_m1
if_icmple 42
iload 11
iload 9
if_icmplt 41
iload 11
iload 10
if_icmpge 42
41: StackMap locals: int
StackMap stack:
new java.io.IOException
dup
ldc "The 'standalone' attribute should be the last attribute in an XML Declaration"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
42: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
ldc "="
iload 10
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;I)I
istore 12
start local 12 43: iload 12
iconst_m1
if_icmpne 45
44: new java.io.IOException
dup
ldc "Missing '=' character after 'encoding' in XML declaration"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
45: StackMap locals: int
StackMap stack:
aload 0
aload 0
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
iload 12
invokevirtual com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.parseEncoding:(Ljava/lang/String;I)Ljava/lang/String;
putfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
46: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
ldc "\""
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 49
47: aload 0
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
ldc "\""
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_1
iadd
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
ldc "\""
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
putfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
48: goto 51
StackMap locals:
StackMap stack:
49: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
ldc "'"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 51
50: aload 0
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
ldc "'"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_1
iadd
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
ldc "'"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
putfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_encoding:Ljava/lang/String;
51: StackMap locals:
StackMap stack:
return
end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 52 0 this Lcom/sun/xml/internal/messaging/saaj/util/XMLDeclarationParser;
1 52 1 c I
2 52 2 index I
3 52 3 xmlDeclStr Ljava/lang/StringBuilder;
10 52 4 len I
11 52 5 decl Ljava/lang/String;
12 52 6 utf16 Z
13 52 7 utf8 Z
14 52 8 xmlIndex I
32 52 9 versionIndex I
35 52 10 encodingIndex I
40 52 11 stdAloneIndex I
43 52 12 eqIndex I
Exceptions:
throws javax.xml.transform.TransformerException, java.io.IOException
public void writeTo(java.io.Writer);
descriptor: (Ljava/io/Writer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.m_hasHeader:Z
ifne 1
return
1: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser.xmlDecl:Ljava/lang/String;
invokevirtual java.lang.String.toString:()Ljava/lang/String;
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/xml/internal/messaging/saaj/util/XMLDeclarationParser;
0 3 1 wr Ljava/io/Writer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
wr
private java.lang.String parseEncoding(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new java.util.StringTokenizer
dup
1: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
2: invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;)V
astore 3
start local 3 3: aload 3
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifeq 9
4: aload 3
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
astore 4
start local 4 5: aload 4
ldc "?"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 5
start local 5 6: iload 5
iconst_m1
if_icmple 8
7: aload 4
iconst_0
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
8: StackMap locals: java.util.StringTokenizer java.lang.String int
StackMap stack:
aload 4
areturn
end local 5 end local 4 9: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "Error parsing 'encoding' attribute in XML declaration"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/xml/internal/messaging/saaj/util/XMLDeclarationParser;
0 10 1 xmlDeclFinal Ljava/lang/String;
0 10 2 eqIndex I
3 10 3 strTok Ljava/util/StringTokenizer;
5 9 4 encodingTok Ljava/lang/String;
6 9 5 indexofQ I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
xmlDeclFinal
eqIndex
}
SourceFile: "XMLDeclarationParser.java"