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 // jdk.internal.util.xml.impl.XMLWriter this
        start local 1 // java.io.OutputStream os
        start local 2 // java.lang.String encoding
        start local 3 // java.nio.charset.Charset cs
         0: .line 53
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 51
            aload 0 /* this */
            aconst_null
            putfield jdk.internal.util.xml.impl.XMLWriter._encoder:Ljava/nio/charset/CharsetEncoder;
         2: .line 54
            aload 0 /* this */
            aload 3 /* cs */
            invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
            putfield jdk.internal.util.xml.impl.XMLWriter._encoder:Ljava/nio/charset/CharsetEncoder;
         3: .line 56
            aload 0 /* this */
            aload 0 /* this */
            aload 1 /* os */
            aload 2 /* encoding */
            aload 3 /* cs */
            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: .line 57
            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 /* ex */
        start local 4 // java.io.UnsupportedEncodingException ex
         6: .line 58
            new jdk.internal.util.xml.XMLStreamException
            dup
            aload 4 /* ex */
            invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 4 // java.io.UnsupportedEncodingException ex
         7: .line 61
      StackMap locals:
      StackMap stack:
            return
        end local 3 // java.nio.charset.Charset cs
        end local 2 // java.lang.String encoding
        end local 1 // java.io.OutputStream os
        end local 0 // jdk.internal.util.xml.impl.XMLWriter this
      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 // jdk.internal.util.xml.impl.XMLWriter this
        start local 1 // char ch
         0: .line 64
            aload 0 /* this */
            getfield jdk.internal.util.xml.impl.XMLWriter._encoder:Ljava/nio/charset/CharsetEncoder;
            ifnonnull 2
         1: .line 65
            iconst_0
            ireturn
         2: .line 67
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.util.xml.impl.XMLWriter._encoder:Ljava/nio/charset/CharsetEncoder;
            iload 1 /* ch */
            invokevirtual java.nio.charset.CharsetEncoder.canEncode:(C)Z
            ireturn
        end local 1 // char ch
        end local 0 // jdk.internal.util.xml.impl.XMLWriter this
      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 // jdk.internal.util.xml.impl.XMLWriter this
        start local 1 // java.lang.String s
         0: .line 73
            aload 0 /* this */
            getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
            aload 1 /* s */
            invokevirtual java.lang.String.toCharArray:()[C
            invokevirtual java.io.Writer.write:([C)V
         1: .line 75
            goto 4
      StackMap locals:
      StackMap stack: java.io.IOException
         2: astore 2 /* e */
        start local 2 // java.io.IOException e
         3: .line 76
            new jdk.internal.util.xml.XMLStreamException
            dup
            ldc "I/O error"
            aload 2 /* e */
            invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.io.IOException e
         4: .line 78
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.String s
        end local 0 // jdk.internal.util.xml.impl.XMLWriter this
      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 // jdk.internal.util.xml.impl.XMLWriter this
        start local 1 // java.lang.String str
        start local 2 // int off
        start local 3 // int len
         0: .line 83
            aload 0 /* this */
            getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
            aload 1 /* str */
            iload 2 /* off */
            iload 3 /* len */
            invokevirtual java.io.Writer.write:(Ljava/lang/String;II)V
         1: .line 84
            goto 4
      StackMap locals:
      StackMap stack: java.io.IOException
         2: astore 4 /* e */
        start local 4 // java.io.IOException e
         3: .line 85
            new jdk.internal.util.xml.XMLStreamException
            dup
            ldc "I/O error"
            aload 4 /* e */
            invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 4 // java.io.IOException e
         4: .line 88
      StackMap locals:
      StackMap stack:
            return
        end local 3 // int len
        end local 2 // int off
        end local 1 // java.lang.String str
        end local 0 // jdk.internal.util.xml.impl.XMLWriter this
      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 // jdk.internal.util.xml.impl.XMLWriter this
        start local 1 // char[] cbuf
        start local 2 // int off
        start local 3 // int len
         0: .line 93
            aload 0 /* this */
            getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
            aload 1 /* cbuf */
            iload 2 /* off */
            iload 3 /* len */
            invokevirtual java.io.Writer.write:([CII)V
         1: .line 94
            goto 4
      StackMap locals:
      StackMap stack: java.io.IOException
         2: astore 4 /* e */
        start local 4 // java.io.IOException e
         3: .line 95
            new jdk.internal.util.xml.XMLStreamException
            dup
            ldc "I/O error"
            aload 4 /* e */
            invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 4 // java.io.IOException e
         4: .line 98
      StackMap locals:
      StackMap stack:
            return
        end local 3 // int len
        end local 2 // int off
        end local 1 // char[] cbuf
        end local 0 // jdk.internal.util.xml.impl.XMLWriter this
      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 // jdk.internal.util.xml.impl.XMLWriter this
        start local 1 // int b
         0: .line 103
            aload 0 /* this */
            getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
            iload 1 /* b */
            invokevirtual java.io.Writer.write:(I)V
         1: .line 104
            goto 4
      StackMap locals:
      StackMap stack: java.io.IOException
         2: astore 2 /* e */
        start local 2 // java.io.IOException e
         3: .line 105
            new jdk.internal.util.xml.XMLStreamException
            dup
            ldc "I/O error"
            aload 2 /* e */
            invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.io.IOException e
         4: .line 107
      StackMap locals:
      StackMap stack:
            return
        end local 1 // int b
        end local 0 // jdk.internal.util.xml.impl.XMLWriter this
      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 // jdk.internal.util.xml.impl.XMLWriter this
         0: .line 111
            aload 0 /* this */
            getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
            invokevirtual java.io.Writer.flush:()V
         1: .line 112
            goto 4
      StackMap locals:
      StackMap stack: java.io.IOException
         2: astore 1 /* ex */
        start local 1 // java.io.IOException ex
         3: .line 113
            new jdk.internal.util.xml.XMLStreamException
            dup
            aload 1 /* ex */
            invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 1 // java.io.IOException ex
         4: .line 115
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.internal.util.xml.impl.XMLWriter this
      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 // jdk.internal.util.xml.impl.XMLWriter this
         0: .line 119
            aload 0 /* this */
            getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
            invokevirtual java.io.Writer.close:()V
         1: .line 120
            goto 4
      StackMap locals:
      StackMap stack: java.io.IOException
         2: astore 1 /* ex */
        start local 1 // java.io.IOException ex
         3: .line 121
            new jdk.internal.util.xml.XMLStreamException
            dup
            aload 1 /* ex */
            invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 1 // java.io.IOException ex
         4: .line 123
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.internal.util.xml.impl.XMLWriter this
      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 // jdk.internal.util.xml.impl.XMLWriter this
         0: .line 126
            ldc "line.separator"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 1 /* lineEnd */
        start local 1 // java.lang.String lineEnd
         1: .line 128
            aload 0 /* this */
            getfield jdk.internal.util.xml.impl.XMLWriter._writer:Ljava/io/Writer;
            aload 1 /* lineEnd */
            invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
         2: .line 129
            goto 5
      StackMap locals: jdk.internal.util.xml.impl.XMLWriter java.lang.String
      StackMap stack: java.io.IOException
         3: astore 2 /* e */
        start local 2 // java.io.IOException e
         4: .line 130
            new jdk.internal.util.xml.XMLStreamException
            dup
            ldc "I/O error"
            aload 2 /* e */
            invokespecial jdk.internal.util.xml.XMLStreamException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.io.IOException e
         5: .line 132
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.String lineEnd
        end local 0 // jdk.internal.util.xml.impl.XMLWriter this
      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 // jdk.internal.util.xml.impl.XMLWriter this
        start local 1 // java.io.OutputStream output
        start local 2 // java.lang.String encoding
        start local 3 // java.nio.charset.Charset cs
         0: .line 146
            aload 3 /* cs */
            ifnull 2
         1: .line 147
            new java.io.OutputStreamWriter
            dup
            new java.io.BufferedOutputStream
            dup
            aload 1 /* output */
            invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
            aload 3 /* cs */
            invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
            areturn
         2: .line 150
      StackMap locals:
      StackMap stack:
            new java.io.OutputStreamWriter
            dup
            new java.io.BufferedOutputStream
            dup
            aload 1 /* output */
            invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
            aload 2 /* encoding */
            invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
            areturn
        end local 3 // java.nio.charset.Charset cs
        end local 2 // java.lang.String encoding
        end local 1 // java.io.OutputStream output
        end local 0 // jdk.internal.util.xml.impl.XMLWriter this
      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"