public class com.sun.xml.internal.stream.writers.WriterUtility
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.xml.internal.stream.writers.WriterUtility
super_class: java.lang.Object
{
public static final java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "<!--"
public static final java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "-->"
public static final java.lang.String DEFAULT_ENCODING;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: " encoding=\"utf-8\""
public static final java.lang.String DEFAULT_XMLDECL;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "<?xml version=\"1.0\" ?>"
public static final java.lang.String DEFAULT_XML_VERSION;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "1.0"
public static final char CLOSE_START_TAG;
descriptor: C
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 62
public static final char OPEN_START_TAG;
descriptor: C
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 60
public static final java.lang.String OPEN_END_TAG;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "</"
public static final char CLOSE_END_TAG;
descriptor: C
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 62
public static final java.lang.String START_CDATA;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "<![CDATA["
public static final java.lang.String END_CDATA;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "]]>"
public static final java.lang.String CLOSE_EMPTY_ELEMENT;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "/>"
public static final java.lang.String SPACE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: " "
public static final java.lang.String UTF_8;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "utf-8"
static final boolean DEBUG_XML_CONTENT;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0
boolean fEscapeCharacters;
descriptor: Z
flags: (0x0000)
java.io.Writer fWriter;
descriptor: Ljava/io/Writer;
flags: (0x0000)
java.nio.charset.CharsetEncoder fEncoder;
descriptor: Ljava/nio/charset/CharsetEncoder;
flags: (0x0000)
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield com.sun.xml.internal.stream.writers.WriterUtility.fEscapeCharacters:Z
2: aload 0
aconst_null
putfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
3: aload 0
aload 0
invokevirtual com.sun.xml.internal.stream.writers.WriterUtility.getDefaultEncoder:()Ljava/nio/charset/CharsetEncoder;
putfield com.sun.xml.internal.stream.writers.WriterUtility.fEncoder:Ljava/nio/charset/CharsetEncoder;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/xml/internal/stream/writers/WriterUtility;
public void <init>(java.io.Writer);
descriptor: (Ljava/io/Writer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield com.sun.xml.internal.stream.writers.WriterUtility.fEscapeCharacters:Z
2: aload 0
aconst_null
putfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
3: aload 0
aload 1
putfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
4: aload 1
instanceof java.io.OutputStreamWriter
ifeq 9
5: aload 1
checkcast java.io.OutputStreamWriter
invokevirtual java.io.OutputStreamWriter.getEncoding:()Ljava/lang/String;
astore 2
start local 2 6: aload 2
ifnull 15
7: aload 0
aload 2
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
putfield com.sun.xml.internal.stream.writers.WriterUtility.fEncoder:Ljava/nio/charset/CharsetEncoder;
end local 2 8: goto 15
StackMap locals: com.sun.xml.internal.stream.writers.WriterUtility java.io.Writer
StackMap stack:
9: aload 1
instanceof java.io.FileWriter
ifeq 14
10: aload 1
checkcast java.io.FileWriter
invokevirtual java.io.FileWriter.getEncoding:()Ljava/lang/String;
astore 2
start local 2 11: aload 2
ifnull 15
12: aload 0
aload 2
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
putfield com.sun.xml.internal.stream.writers.WriterUtility.fEncoder:Ljava/nio/charset/CharsetEncoder;
end local 2 13: goto 15
14: StackMap locals:
StackMap stack:
aload 0
aload 0
invokevirtual com.sun.xml.internal.stream.writers.WriterUtility.getDefaultEncoder:()Ljava/nio/charset/CharsetEncoder;
putfield com.sun.xml.internal.stream.writers.WriterUtility.fEncoder:Ljava/nio/charset/CharsetEncoder;
15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/xml/internal/stream/writers/WriterUtility;
0 16 1 writer Ljava/io/Writer;
6 8 2 charset Ljava/lang/String;
11 13 2 charset Ljava/lang/String;
MethodParameters:
Name Flags
writer
public void setWriter(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
aload 1
putfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/stream/writers/WriterUtility;
0 2 1 writer Ljava/io/Writer;
MethodParameters:
Name Flags
writer
public void setEscapeCharacters(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield com.sun.xml.internal.stream.writers.WriterUtility.fEscapeCharacters:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/stream/writers/WriterUtility;
0 2 1 escape Z
MethodParameters:
Name Flags
escape
public boolean getEscapeCharacters();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fEscapeCharacters:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/stream/writers/WriterUtility;
public void writeXMLContent(char[], int, int);
descriptor: ([CII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
aload 0
invokevirtual com.sun.xml.internal.stream.writers.WriterUtility.getEscapeCharacters:()Z
invokevirtual com.sun.xml.internal.stream.writers.WriterUtility.writeXMLContent:([CIIZ)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/stream/writers/WriterUtility;
0 2 1 content [C
0 2 2 start I
0 2 3 length I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
content
start
length
private void writeXMLContent(char[], int, int, boolean);
descriptor: ([CIIZ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 2
iload 3
iadd
istore 7
start local 7 1: iload 2
istore 8
start local 8 2: iload 2
istore 5
start local 5 3: goto 27
4: StackMap locals: com.sun.xml.internal.stream.writers.WriterUtility char[] int int int int top int int
StackMap stack:
aload 1
iload 5
caload
istore 6
start local 6 5: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fEncoder:Ljava/nio/charset/CharsetEncoder;
ifnull 11
aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fEncoder:Ljava/nio/charset/CharsetEncoder;
iload 6
invokevirtual java.nio.charset.CharsetEncoder.canEncode:(C)Z
ifne 11
6: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
aload 1
iload 8
iload 5
iload 8
isub
invokevirtual java.io.Writer.write:([CII)V
7: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
ldc "&#x"
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
8: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
iload 6
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
9: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
bipush 59
invokevirtual java.io.Writer.write:(I)V
10: iload 5
iconst_1
iadd
istore 8
11: StackMap locals: com.sun.xml.internal.stream.writers.WriterUtility char[] int int int int int int int
StackMap stack:
iload 6
lookupswitch { // 3
38: 17
60: 12
62: 22
default: 26
}
12: StackMap locals:
StackMap stack:
iload 4
ifeq 26
13: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
aload 1
iload 8
iload 5
iload 8
isub
invokevirtual java.io.Writer.write:([CII)V
14: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
ldc "<"
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
15: iload 5
iconst_1
iadd
istore 8
16: goto 26
17: StackMap locals:
StackMap stack:
iload 4
ifeq 26
18: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
aload 1
iload 8
iload 5
iload 8
isub
invokevirtual java.io.Writer.write:([CII)V
19: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
ldc "&"
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
20: iload 5
iconst_1
iadd
istore 8
21: goto 26
22: StackMap locals:
StackMap stack:
iload 4
ifeq 26
23: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
aload 1
iload 8
iload 5
iload 8
isub
invokevirtual java.io.Writer.write:([CII)V
24: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
ldc ">"
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
25: iload 5
iconst_1
iadd
istore 8
26: StackMap locals:
StackMap stack:
iinc 5 1
end local 6 StackMap locals: com.sun.xml.internal.stream.writers.WriterUtility char[] int int int int top int int
StackMap stack:
27: iload 5
iload 7
if_icmplt 4
28: aload 0
getfield com.sun.xml.internal.stream.writers.WriterUtility.fWriter:Ljava/io/Writer;
aload 1
iload 8
iload 7
iload 8
isub
invokevirtual java.io.Writer.write:([CII)V
29: return
end local 8 end local 7 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 30 0 this Lcom/sun/xml/internal/stream/writers/WriterUtility;
0 30 1 content [C
0 30 2 start I
0 30 3 length I
0 30 4 escapeCharacter Z
3 30 5 index I
5 27 6 ch C
1 30 7 end I
2 30 8 startWritePos I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
content
start
length
escapeCharacter
public void writeXMLContent(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.lang.String.length:()I
ifne 2
StackMap locals:
StackMap stack:
1: return
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.lang.String.toCharArray:()[C
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual com.sun.xml.internal.stream.writers.WriterUtility.writeXMLContent:([CII)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/xml/internal/stream/writers/WriterUtility;
0 4 1 content Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
content
public void writeXMLAttributeValue(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.String.toCharArray:()[C
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
invokevirtual com.sun.xml.internal.stream.writers.WriterUtility.writeXMLContent:([CIIZ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/stream/writers/WriterUtility;
0 2 1 value Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
value
private java.nio.charset.CharsetEncoder getDefaultEncoder();
descriptor: ()Ljava/nio/charset/CharsetEncoder;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: ldc "file.encoding"
invokestatic jdk.xml.internal.SecuritySupport.getSystemProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 5
2: aload 1
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
3: areturn
end local 1 4: StackMap locals:
StackMap stack: java.lang.Exception
pop
5: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/xml/internal/stream/writers/WriterUtility;
1 4 1 encoding Ljava/lang/String;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
}
SourceFile: "WriterUtility.java"