public class jdk.internal.util.xml.impl.XMLWriter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.util.xml.impl.XMLWriter
super_class: java.lang.Object
{
private java.io.Writer _writer;
descriptor: Ljava/io/Writer;
flags: (0x0002) ACC_PRIVATE
private java.nio.charset.CharsetEncoder _encoder;
descriptor: Ljava/nio/charset/CharsetEncoder;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.io.OutputStream, java.lang.String, java.nio.charset.Charset);
descriptor: (Ljava/io/OutputStream;Ljava/lang/String;Ljava/nio/charset/Charset;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield jdk.internal.util.xml.impl.XMLWriter._encoder:Ljava/nio/charset/CharsetEncoder;
2: aload 0
aload 3
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
putfield jdk.internal.util.xml.impl.XMLWriter._encoder:Ljava/nio/charset/CharsetEncoder;
3: aload 0
aload 0
aload 1
aload 2
aload 3
invokevirtual jdk.internal.util.xml.impl.XMLWriter.getWriter:(Ljava/io/OutputStream;Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/io/Writer;
putfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
4: goto 7
StackMap locals: jdk.internal.util.xml.impl.XMLWriter java.io.OutputStream java.lang.String java.nio.charset.Charset
StackMap stack: java.io.UnsupportedEncodingException
5: astore 4
start local 4 6: new jdk.internal.util.xml.XMLStreamException
dup
aload 4
invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 7: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/util/xml/impl/XMLWriter;
0 8 1 os Ljava/io/OutputStream;
0 8 2 encoding Ljava/lang/String;
0 8 3 cs Ljava/nio/charset/Charset;
6 7 4 ex Ljava/io/UnsupportedEncodingException;
Exception table:
from to target type
3 4 5 Class java.io.UnsupportedEncodingException
Exceptions:
throws jdk.internal.util.xml.XMLStreamException
MethodParameters:
Name Flags
os
encoding
cs
public boolean canEncode(char);
descriptor: (C)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.util.xml.impl.XMLWriter._encoder:Ljava/nio/charset/CharsetEncoder;
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.util.xml.impl.XMLWriter._encoder:Ljava/nio/charset/CharsetEncoder;
iload 1
invokevirtual java.nio.charset.CharsetEncoder.canEncode:(C)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/util/xml/impl/XMLWriter;
0 3 1 ch C
MethodParameters:
Name Flags
ch
public void write(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
aload 1
invokevirtual java.lang.String.toCharArray:()[C
invokevirtual java.io.Writer.write:([C)V
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 2
start local 2 3: new jdk.internal.util.xml.XMLStreamException
dup
ldc "I/O error"
aload 2
invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/util/xml/impl/XMLWriter;
0 5 1 s Ljava/lang/String;
3 4 2 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws jdk.internal.util.xml.XMLStreamException
MethodParameters:
Name Flags
s
public void write(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
aload 1
iload 2
iload 3
invokevirtual java.io.Writer.write:(Ljava/lang/String;II)V
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 4
start local 4 3: new jdk.internal.util.xml.XMLStreamException
dup
ldc "I/O error"
aload 4
invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 4: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/util/xml/impl/XMLWriter;
0 5 1 str Ljava/lang/String;
0 5 2 off I
0 5 3 len I
3 4 4 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws jdk.internal.util.xml.XMLStreamException
MethodParameters:
Name Flags
str
off
len
public void write(char[], int, int);
descriptor: ([CII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
aload 1
iload 2
iload 3
invokevirtual java.io.Writer.write:([CII)V
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 4
start local 4 3: new jdk.internal.util.xml.XMLStreamException
dup
ldc "I/O error"
aload 4
invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 4: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/util/xml/impl/XMLWriter;
0 5 1 cbuf [C
0 5 2 off I
0 5 3 len I
3 4 4 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws jdk.internal.util.xml.XMLStreamException
MethodParameters:
Name Flags
cbuf
off
len
void write(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
iload 1
invokevirtual java.io.Writer.write:(I)V
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 2
start local 2 3: new jdk.internal.util.xml.XMLStreamException
dup
ldc "I/O error"
aload 2
invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/util/xml/impl/XMLWriter;
0 5 1 b I
3 4 2 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws jdk.internal.util.xml.XMLStreamException
MethodParameters:
Name Flags
b
void flush();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
invokevirtual java.io.Writer.flush:()V
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 1
start local 1 3: new jdk.internal.util.xml.XMLStreamException
dup
aload 1
invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/util/xml/impl/XMLWriter;
3 4 1 ex Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws jdk.internal.util.xml.XMLStreamException
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
invokevirtual java.io.Writer.close:()V
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 1
start local 1 3: new jdk.internal.util.xml.XMLStreamException
dup
aload 1
invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/util/xml/impl/XMLWriter;
3 4 1 ex Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws jdk.internal.util.xml.XMLStreamException
private void nl();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: invokestatic java.lang.System.lineSeparator:()Ljava/lang/String;
astore 1
start local 1 1: aload 0
getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
aload 1
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
2: goto 5
StackMap locals: jdk.internal.util.xml.impl.XMLWriter java.lang.String
StackMap stack: java.io.IOException
3: astore 2
start local 2 4: new jdk.internal.util.xml.XMLStreamException
dup
ldc "I/O error"
aload 2
invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/util/xml/impl/XMLWriter;
1 6 1 lineEnd Ljava/lang/String;
4 5 2 e Ljava/io/IOException;
Exception table:
from to target type
1 2 3 Class java.io.IOException
Exceptions:
throws jdk.internal.util.xml.XMLStreamException
private java.io.Writer getWriter(java.io.OutputStream, java.lang.String, java.nio.charset.Charset);
descriptor: (Ljava/io/OutputStream;Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/io/Writer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnull 2
1: new java.io.OutputStreamWriter
dup
new java.io.BufferedOutputStream
dup
aload 1
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
aload 3
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
areturn
2: StackMap locals:
StackMap stack:
new java.io.OutputStreamWriter
dup
new java.io.BufferedOutputStream
dup
aload 1
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
aload 2
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/util/xml/impl/XMLWriter;
0 3 1 output Ljava/io/OutputStream;
0 3 2 encoding Ljava/lang/String;
0 3 3 cs Ljava/nio/charset/Charset;
Exceptions:
throws jdk.internal.util.xml.XMLStreamException, java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
output
encoding
cs
}
SourceFile: "XMLWriter.java"