final class com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader extends com.sun.xml.internal.dtdparser.XmlReader$BaseReader
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader
super_class: com.sun.xml.internal.dtdparser.XmlReader$BaseReader
{
private char nextChar;
descriptor: C
flags: (0x0002) ACC_PRIVATE
void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial com.sun.xml.internal.dtdparser.XmlReader$BaseReader.<init>:(Ljava/io/InputStream;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/dtdparser/XmlReader$Utf8Reader;
0 2 1 stream Ljava/io/InputStream;
MethodParameters:
Name Flags
stream
public int read(char[], int, int);
descriptor: ([CII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: iconst_0
istore 5
start local 5 2: iload 3
ifgt 4
3: iconst_0
ireturn
4: StackMap locals: int int
StackMap stack:
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.nextChar:C
ifeq 76
5: aload 1
iload 2
iload 4
iinc 4 1
iadd
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.nextChar:C
castore
6: aload 0
iconst_0
putfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.nextChar:C
7: goto 76
8: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.finish:I
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
if_icmpgt 18
9: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.instream:Ljava/io/InputStream;
ifnonnull 12
10: iconst_m1
istore 5
11: goto 77
12: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
13: aload 0
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.instream:Ljava/io/InputStream;
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iconst_0
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
arraylength
invokevirtual java.io.InputStream.read:([BII)I
putfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.finish:I
14: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.finish:I
ifgt 18
15: aload 0
invokevirtual com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.close:()V
16: iconst_m1
istore 5
17: goto 77
18: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
baload
sipush 255
iand
istore 5
19: iload 5
sipush 128
iand
ifne 23
20: aload 0
dup
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
iconst_1
iadd
putfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
21: aload 1
iload 2
iload 4
iinc 4 1
iadd
iload 5
i2c
castore
22: goto 76
23: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
istore 6
start local 6 24: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
baload
sipush 224
iand
sipush 192
if_icmpne 28
25: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
iinc 6 1
baload
bipush 31
iand
bipush 6
ishl
istore 5
26: iload 5
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
iinc 6 1
baload
bipush 63
iand
iadd
istore 5
27: goto 52
StackMap locals: int
StackMap stack:
28: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
baload
sipush 240
iand
sipush 224
if_icmpne 33
29: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
iinc 6 1
baload
bipush 15
iand
bipush 12
ishl
istore 5
30: iload 5
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
iinc 6 1
baload
bipush 63
iand
bipush 6
ishl
iadd
istore 5
31: iload 5
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
iinc 6 1
baload
bipush 63
iand
iadd
istore 5
32: goto 52
StackMap locals:
StackMap stack:
33: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
baload
sipush 248
iand
sipush 240
if_icmpne 47
34: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
iinc 6 1
baload
bipush 7
iand
bipush 18
ishl
istore 5
35: iload 5
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
iinc 6 1
baload
bipush 63
iand
bipush 12
ishl
iadd
istore 5
36: iload 5
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
iinc 6 1
baload
bipush 63
iand
bipush 6
ishl
iadd
istore 5
37: iload 5
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iload 6
iinc 6 1
baload
bipush 63
iand
iadd
istore 5
38: iload 5
ldc 1114111
if_icmple 43
39: new java.io.CharConversionException
dup
new java.lang.StringBuilder
dup
ldc "UTF-8 encoding of character 0x00"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
40: iload 5
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
41: ldc " can't be converted to Unicode."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
42: invokespecial java.io.CharConversionException.<init>:(Ljava/lang/String;)V
athrow
43: StackMap locals:
StackMap stack:
iload 5
ldc 65536
isub
istore 5
44: aload 0
ldc 56320
iload 5
sipush 1023
iand
iadd
i2c
putfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.nextChar:C
45: ldc 55296
iload 5
bipush 10
ishr
iadd
istore 5
46: goto 52
47: StackMap locals:
StackMap stack:
new java.io.CharConversionException
dup
new java.lang.StringBuilder
dup
ldc "Unconvertible UTF-8 character beginning with 0x"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
48: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
baload
sipush 255
iand
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
49: invokespecial java.io.CharConversionException.<init>:(Ljava/lang/String;)V
athrow
50: StackMap locals:
StackMap stack: java.lang.ArrayIndexOutOfBoundsException
pop
51: iconst_0
istore 5
52: StackMap locals:
StackMap stack:
iload 6
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.finish:I
if_icmple 66
53: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
54: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
iconst_0
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.finish:I
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
isub
55: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
56: aload 0
dup
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.finish:I
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
isub
putfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.finish:I
57: aload 0
iconst_0
putfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
58: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.instream:Ljava/io/InputStream;
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.finish:I
59: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
arraylength
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.finish:I
isub
60: invokevirtual java.io.InputStream.read:([BII)I
istore 6
61: iload 6
ifge 64
62: aload 0
invokevirtual com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.close:()V
63: new java.io.CharConversionException
dup
ldc "Partial UTF-8 char"
invokespecial java.io.CharConversionException.<init>:(Ljava/lang/String;)V
athrow
64: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.finish:I
iload 6
iadd
putfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.finish:I
65: goto 76
66: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
iconst_1
iadd
putfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
goto 71
67: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.buffer:[B
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
baload
sipush 192
iand
sipush 128
if_icmpeq 70
68: aload 0
invokevirtual com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.close:()V
69: new java.io.CharConversionException
dup
ldc "Malformed UTF-8 char -- is an XML encoding declaration missing?"
invokespecial java.io.CharConversionException.<init>:(Ljava/lang/String;)V
athrow
70: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
iconst_1
iadd
putfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
StackMap locals:
StackMap stack:
71: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.start:I
iload 6
if_icmplt 67
72: aload 1
iload 2
iload 4
iinc 4 1
iadd
iload 5
i2c
castore
73: aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.nextChar:C
ifeq 76
iload 4
iload 3
if_icmpge 76
74: aload 1
iload 2
iload 4
iinc 4 1
iadd
aload 0
getfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.nextChar:C
castore
75: aload 0
iconst_0
putfield com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader.nextChar:C
end local 6 76: StackMap locals:
StackMap stack:
iload 4
iload 3
if_icmplt 8
77: StackMap locals:
StackMap stack:
iload 4
ifle 79
78: iload 4
ireturn
79: StackMap locals:
StackMap stack:
iload 5
iconst_m1
if_icmpne 80
iconst_m1
goto 81
StackMap locals:
StackMap stack:
80: iconst_0
StackMap locals:
StackMap stack: int
81: ireturn
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 82 0 this Lcom/sun/xml/internal/dtdparser/XmlReader$Utf8Reader;
0 82 1 buf [C
0 82 2 offset I
0 82 3 len I
1 82 4 i I
2 82 5 c I
24 76 6 off I
Exception table:
from to target type
24 50 50 Class java.lang.ArrayIndexOutOfBoundsException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
buf
offset
len
}
SourceFile: "XmlReader.java"
NestHost: com.sun.xml.internal.dtdparser.XmlReader
InnerClasses:
abstract BaseReader = com.sun.xml.internal.dtdparser.XmlReader$BaseReader of com.sun.xml.internal.dtdparser.XmlReader
final Utf8Reader = com.sun.xml.internal.dtdparser.XmlReader$Utf8Reader of com.sun.xml.internal.dtdparser.XmlReader