public class com.sun.xml.internal.ws.util.ByteArrayBuffer extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.xml.internal.ws.util.ByteArrayBuffer
super_class: java.io.OutputStream
{
protected byte[] buf;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
private int count;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static final int CHUNK_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4096
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
bipush 32
invokespecial com.sun.xml.internal.ws.util.ByteArrayBuffer.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
public void <init>(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
invokespecial java.io.OutputStream.<init>:()V
1: iload 1
ifgt 3
2: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
3: StackMap locals: com.sun.xml.internal.ws.util.ByteArrayBuffer int
StackMap stack:
aload 0
iload 1
newarray 8
putfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
0 5 1 size I
MethodParameters:
Name Flags
size
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
arraylength
invokespecial com.sun.xml.internal.ws.util.ByteArrayBuffer.<init>:([BI)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
0 2 1 data [B
MethodParameters:
Name Flags
data
public void <init>(byte[], int);
descriptor: ([BI)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
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
aload 1
putfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
2: aload 0
iload 2
putfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
0 4 1 data [B
0 4 2 length I
MethodParameters:
Name Flags
data
length
public final void write(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
arraylength
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
isub
istore 2
start local 2 1: aload 1
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
iload 2
invokevirtual java.io.InputStream.read:([BII)I
istore 3
start local 3 2: iload 3
ifge 3
return
3: StackMap locals: int int
StackMap stack:
aload 0
dup
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
iload 3
iadd
putfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
4: iload 2
iload 3
if_icmpne 0
5: aload 0
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
arraylength
iconst_2
imul
invokevirtual com.sun.xml.internal.ws.util.ByteArrayBuffer.ensureCapacity:(I)V
end local 3 end local 2 6: goto 0
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
0 7 1 in Ljava/io/InputStream;
1 6 2 cap I
2 6 3 sz I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
public final void write(int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
iconst_1
iadd
istore 2
start local 2 1: aload 0
iload 2
invokevirtual com.sun.xml.internal.ws.util.ByteArrayBuffer.ensureCapacity:(I)V
2: aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
iload 1
i2b
bastore
3: aload 0
iload 2
putfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count: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/ws/util/ByteArrayBuffer;
0 5 1 b I
1 5 2 newcount I
MethodParameters:
Name Flags
b
public final void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
iload 3
iadd
istore 4
start local 4 1: aload 0
iload 4
invokevirtual com.sun.xml.internal.ws.util.ByteArrayBuffer.ensureCapacity:(I)V
2: aload 1
iload 2
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 0
iload 4
putfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
4: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
0 5 1 b [B
0 5 2 off I
0 5 3 len I
1 5 4 newcount I
MethodParameters:
Name Flags
b
off
len
private void ensureCapacity(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
arraylength
if_icmple 4
1: aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
arraylength
iconst_1
ishl
iload 1
invokestatic java.lang.Math.max:(II)I
newarray 8
astore 2
start local 2 2: aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
iconst_0
aload 2
iconst_0
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 0
aload 2
putfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
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 Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
0 5 1 newcount I
2 4 2 newbuf [B
MethodParameters:
Name Flags
newcount
public final void writeTo(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 9
3: StackMap locals: int int
StackMap stack:
iload 2
sipush 4096
if_icmple 4
sipush 4096
goto 5
StackMap locals:
StackMap stack:
4: iload 2
StackMap locals:
StackMap stack: int
5: istore 4
start local 4 6: aload 1
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
iload 3
iload 4
invokevirtual java.io.OutputStream.write:([BII)V
7: iload 2
iload 4
isub
istore 2
8: iload 3
iload 4
iadd
istore 3
end local 4 9: StackMap locals:
StackMap stack:
iload 2
ifgt 3
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
0 11 1 out Ljava/io/OutputStream;
1 11 2 remaining I
2 11 3 off I
6 9 4 chunk I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
public final void reset();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
public final byte[] toByteArray();
descriptor: ()[B
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
newarray 8
astore 1
start local 1 1: aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
iconst_0
aload 1
iconst_0
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
1 3 1 newbuf [B
public final int size();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
public final byte[] getRawData();
descriptor: ()[B
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
Exceptions:
throws java.io.IOException
public final java.io.InputStream newInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=1, args_size=1
start local 0 0: new java.io.ByteArrayInputStream
dup
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
iconst_0
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
invokespecial java.io.ByteArrayInputStream.<init>:([BII)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
public final java.io.InputStream newInputStream(int, int);
descriptor: (II)Ljava/io/InputStream;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.io.ByteArrayInputStream
dup
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
iload 1
iload 2
invokespecial java.io.ByteArrayInputStream.<init>:([BII)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
0 1 1 start I
0 1 2 length I
MethodParameters:
Name Flags
start
length
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new java.lang.String
dup
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.buf:[B
iconst_0
aload 0
getfield com.sun.xml.internal.ws.util.ByteArrayBuffer.count:I
invokespecial java.lang.String.<init>:([BII)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/ws/util/ByteArrayBuffer;
}
SourceFile: "ByteArrayBuffer.java"