public class com.sun.xml.internal.stream.writers.XMLWriter extends java.io.Writer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.xml.internal.stream.writers.XMLWriter
super_class: java.io.Writer
{
private java.io.Writer writer;
descriptor: Ljava/io/Writer;
flags: (0x0002) ACC_PRIVATE
private int size;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private com.sun.org.apache.xerces.internal.util.XMLStringBuffer buffer;
descriptor: Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
flags: (0x0002) ACC_PRIVATE
private static final int THRESHHOLD_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4096
private static final boolean DEBUG;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public void <init>(java.io.Writer);
descriptor: (Ljava/io/Writer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
sipush 4096
invokespecial com.sun.xml.internal.stream.writers.XMLWriter.<init>:(Ljava/io/Writer;I)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/XMLWriter;
0 2 1 writer Ljava/io/Writer;
MethodParameters:
Name Flags
writer
public void <init>(java.io.Writer, int);
descriptor: (Ljava/io/Writer;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.io.Writer.<init>:()V
1: aload 0
new com.sun.org.apache.xerces.internal.util.XMLStringBuffer
dup
sipush 12288
invokespecial com.sun.org.apache.xerces.internal.util.XMLStringBuffer.<init>:(I)V
putfield com.sun.xml.internal.stream.writers.XMLWriter.buffer:Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
2: aload 0
aload 1
putfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
3: aload 0
iload 2
putfield com.sun.xml.internal.stream.writers.XMLWriter.size:I
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/xml/internal/stream/writers/XMLWriter;
0 5 1 writer Ljava/io/Writer;
0 5 2 size I
MethodParameters:
Name Flags
writer
size
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.ensureOpen:()V
1: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.buffer:Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
iload 1
i2c
invokevirtual com.sun.org.apache.xerces.internal.util.XMLStringBuffer.append:(C)V
2: aload 0
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.conditionalWrite:()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/XMLWriter;
0 4 1 c I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
c
public void write(char[]);
descriptor: ([C)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.write:([CII)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/XMLWriter;
0 2 1 cbuf [C
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cbuf
public void write(char[], int, int);
descriptor: ([CII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.ensureOpen:()V
1: iload 3
aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.size:I
if_icmple 5
2: aload 0
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.writeBufferedData:()V
3: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
aload 1
iload 2
iload 3
invokevirtual java.io.Writer.write:([CII)V
4: goto 7
5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.buffer:Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
aload 1
iload 2
iload 3
invokevirtual com.sun.org.apache.xerces.internal.util.XMLStringBuffer.append:([CII)V
6: aload 0
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.conditionalWrite:()V
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 Lcom/sun/xml/internal/stream/writers/XMLWriter;
0 8 1 cbuf [C
0 8 2 off I
0 8 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cbuf
off
len
public void write(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual java.lang.String.toCharArray:()[C
iload 2
iload 3
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.write:([CII)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/XMLWriter;
0 2 1 str Ljava/lang/String;
0 2 2 off I
0 2 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
str
off
len
public void write(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.size:I
if_icmple 4
1: aload 0
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.writeBufferedData:()V
2: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
aload 1
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
3: goto 6
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.buffer:Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
aload 1
invokevirtual com.sun.org.apache.xerces.internal.util.XMLStringBuffer.append:(Ljava/lang/String;)V
5: aload 0
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.conditionalWrite:()V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/xml/internal/stream/writers/XMLWriter;
0 7 1 str Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
str
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
ifnonnull 1
return
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.flush:()V
2: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
invokevirtual java.io.Writer.close:()V
3: aload 0
aconst_null
putfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/xml/internal/stream/writers/XMLWriter;
Exceptions:
throws java.io.IOException
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.ensureOpen:()V
1: aload 0
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.writeBufferedData:()V
2: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
invokevirtual java.io.Writer.flush:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/xml/internal/stream/writers/XMLWriter;
Exceptions:
throws java.io.IOException
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
1: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.buffer:Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
invokevirtual com.sun.org.apache.xerces.internal.util.XMLStringBuffer.clear:()V
2: aload 0
sipush 4096
putfield com.sun.xml.internal.stream.writers.XMLWriter.size:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/xml/internal/stream/writers/XMLWriter;
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.XMLWriter.writer:Ljava/io/Writer;
1: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.buffer:Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
invokevirtual com.sun.org.apache.xerces.internal.util.XMLStringBuffer.clear:()V
2: aload 0
sipush 4096
putfield com.sun.xml.internal.stream.writers.XMLWriter.size:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/xml/internal/stream/writers/XMLWriter;
0 4 1 writer Ljava/io/Writer;
MethodParameters:
Name Flags
writer
public void setWriter(java.io.Writer, int);
descriptor: (Ljava/io/Writer;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
putfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
1: aload 0
iload 2
putfield com.sun.xml.internal.stream.writers.XMLWriter.size:I
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/xml/internal/stream/writers/XMLWriter;
0 3 1 writer Ljava/io/Writer;
0 3 2 size I
MethodParameters:
Name Flags
writer
size
protected java.io.Writer getWriter();
descriptor: ()Ljava/io/Writer;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/stream/writers/XMLWriter;
private void conditionalWrite();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.buffer:Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
getfield com.sun.org.apache.xerces.internal.util.XMLStringBuffer.length:I
aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.size:I
if_icmple 2
1: aload 0
invokevirtual com.sun.xml.internal.stream.writers.XMLWriter.writeBufferedData:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/xml/internal/stream/writers/XMLWriter;
Exceptions:
throws java.io.IOException
private void writeBufferedData();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.buffer:Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
getfield com.sun.org.apache.xerces.internal.util.XMLStringBuffer.ch:[C
aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.buffer:Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
getfield com.sun.org.apache.xerces.internal.util.XMLStringBuffer.offset:I
aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.buffer:Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
getfield com.sun.org.apache.xerces.internal.util.XMLStringBuffer.length:I
invokevirtual java.io.Writer.write:([CII)V
1: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.buffer:Lcom/sun/org/apache/xerces/internal/util/XMLStringBuffer;
invokevirtual com.sun.org.apache.xerces.internal.util.XMLStringBuffer.clear:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/xml/internal/stream/writers/XMLWriter;
Exceptions:
throws java.io.IOException
private void ensureOpen();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.stream.writers.XMLWriter.writer:Ljava/io/Writer;
ifnonnull 1
new java.io.IOException
dup
ldc "Stream closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
1: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/stream/writers/XMLWriter;
Exceptions:
throws java.io.IOException
}
SourceFile: "XMLWriter.java"