public final class com.sun.xml.internal.messaging.saaj.util.ByteOutputStream extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.xml.internal.messaging.saaj.util.ByteOutputStream
super_class: java.io.OutputStream
{
protected byte[] buf;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
protected int count;
descriptor: I
flags: (0x0004) ACC_PROTECTED
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
sipush 1024
invokespecial com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
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: aload 0
iconst_0
putfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
2: aload 0
iload 1
newarray 8
putfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
0 4 1 size I
MethodParameters:
Name Flags
size
public void write(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.io.ByteArrayInputStream
ifeq 5
1: aload 1
invokevirtual java.io.InputStream.available:()I
istore 2
start local 2 2: aload 0
iload 2
invokevirtual com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.ensureCapacity:(I)V
3: aload 0
dup
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
aload 1
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
iload 2
invokevirtual java.io.InputStream.read:([BII)I
iadd
putfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
4: return
end local 2 5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
arraylength
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
isub
istore 2
start local 2 6: aload 1
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
iload 2
invokevirtual java.io.InputStream.read:([BII)I
istore 3
start local 3 7: iload 3
ifge 8
return
8: StackMap locals: int int
StackMap stack:
aload 0
dup
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
iload 3
iadd
putfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
9: iload 2
iload 3
if_icmpne 5
10: aload 0
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
invokevirtual com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.ensureCapacity:(I)V
end local 3 end local 2 11: goto 5
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
0 12 1 in Ljava/io/InputStream;
2 5 2 size I
6 11 2 cap I
7 11 3 sz I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.ensureCapacity:(I)V
1: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
iload 1
i2b
bastore
2: aload 0
dup
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
iconst_1
iadd
putfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
0 4 1 b I
MethodParameters:
Name Flags
b
private void ensureCapacity(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
iadd
istore 2
start local 2 1: iload 2
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
arraylength
if_icmple 5
2: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
arraylength
iconst_1
ishl
iload 2
invokestatic java.lang.Math.max:(II)I
newarray 8
astore 3
start local 3 3: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
iconst_0
aload 3
iconst_0
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 0
aload 3
putfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
end local 3 5: StackMap locals: int
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
0 6 1 space I
1 6 2 newcount I
3 5 3 newbuf [B
MethodParameters:
Name Flags
space
public void write(byte[], int, int);
descriptor: ([BII)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
iload 3
invokevirtual com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.ensureCapacity:(I)V
1: aload 1
iload 2
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 0
dup
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
iload 3
iadd
putfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
0 4 1 b [B
0 4 2 off I
0 4 3 len I
MethodParameters:
Name Flags
b
off
len
public void write(byte[]);
descriptor: ([B)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.messaging.saaj.util.ByteOutputStream.write:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
0 2 1 b [B
MethodParameters:
Name Flags
b
public void writeAsAscii(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: aload 0
iload 2
invokevirtual com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.ensureCapacity:(I)V
2: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 7
5: StackMap locals: int int int
StackMap stack:
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
iload 3
iinc 3 1
aload 1
iload 4
invokevirtual java.lang.String.charAt:(I)C
i2b
bastore
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 2
if_icmplt 5
end local 4 8: aload 0
iload 3
putfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
0 10 1 s Ljava/lang/String;
1 10 2 len I
3 10 3 ptr I
4 8 4 i I
MethodParameters:
Name Flags
s
public void writeTo(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
iconst_0
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
invokevirtual java.io.OutputStream.write:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
0 2 1 out Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
public byte[] toByteArray();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
newarray 8
astore 1
start local 1 1: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
iconst_0
aload 1
iconst_0
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.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/messaging/saaj/util/ByteOutputStream;
1 3 1 newbuf [B
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
public com.sun.xml.internal.messaging.saaj.util.ByteInputStream newInputStream();
descriptor: ()Lcom/sun/xml/internal/messaging/saaj/util/ByteInputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new com.sun.xml.internal.messaging.saaj.util.ByteInputStream
dup
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
invokespecial com.sun.xml.internal.messaging.saaj.util.ByteInputStream.<init>:([BI)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
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.messaging.saaj.util.ByteOutputStream.buf:[B
iconst_0
aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.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/messaging/saaj/util/ByteOutputStream;
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/messaging/saaj/util/ByteOutputStream;
public byte[] getBytes();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.buf:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
public int getCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.messaging.saaj.util.ByteOutputStream.count:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/messaging/saaj/util/ByteOutputStream;
}
SourceFile: "ByteOutputStream.java"