public class org.jboss.resteasy.util.InputStreamToByteArray extends java.io.InputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.util.InputStreamToByteArray
super_class: java.io.InputStream
{
protected java.io.InputStream delegate;
descriptor: Ljava/io/InputStream;
flags: (0x0004) ACC_PROTECTED
protected java.io.ByteArrayOutputStream os;
descriptor: Ljava/io/ByteArrayOutputStream;
flags: (0x0004) ACC_PROTECTED
public void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
putfield org.jboss.resteasy.util.InputStreamToByteArray.os:Ljava/io/ByteArrayOutputStream;
2: aload 0
aload 1
putfield org.jboss.resteasy.util.InputStreamToByteArray.delegate:Ljava/io/InputStream;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/util/InputStreamToByteArray;
0 4 1 delegate Ljava/io/InputStream;
MethodParameters:
Name Flags
delegate
public byte[] toByteArray();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.util.InputStreamToByteArray.os:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/util/InputStreamToByteArray;
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.util.InputStreamToByteArray.delegate:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 1
start local 1 1: iload 1
iconst_m1
if_icmple 3
2: aload 0
getfield org.jboss.resteasy.util.InputStreamToByteArray.os:Ljava/io/ByteArrayOutputStream;
iload 1
i2b
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
3: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/util/InputStreamToByteArray;
1 4 1 b I
Exceptions:
throws java.io.IOException
public int read(byte[]);
descriptor: ([B)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.util.InputStreamToByteArray.delegate:Ljava/io/InputStream;
aload 1
invokevirtual java.io.InputStream.read:([B)I
istore 2
start local 2 1: iload 2
ifle 3
2: aload 0
getfield org.jboss.resteasy.util.InputStreamToByteArray.os:Ljava/io/ByteArrayOutputStream;
aload 1
iconst_0
iload 2
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
3: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/util/InputStreamToByteArray;
0 4 1 bytes [B
1 4 2 num I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bytes
public int read(byte[], int, int);
descriptor: ([BII)I
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 org.jboss.resteasy.util.InputStreamToByteArray.delegate:Ljava/io/InputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.InputStream.read:([BII)I
istore 4
start local 4 1: iload 4
ifle 3
2: aload 0
getfield org.jboss.resteasy.util.InputStreamToByteArray.os:Ljava/io/ByteArrayOutputStream;
aload 1
iload 2
iload 4
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
3: StackMap locals: int
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/util/InputStreamToByteArray;
0 4 1 bytes [B
0 4 2 off I
0 4 3 len I
1 4 4 num I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bytes
off
len
public long skip(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.util.InputStreamToByteArray.delegate:Ljava/io/InputStream;
lload 1
invokevirtual java.io.InputStream.skip:(J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/util/InputStreamToByteArray;
0 1 1 l J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
l
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.util.InputStreamToByteArray.delegate:Ljava/io/InputStream;
invokevirtual java.io.InputStream.available:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/util/InputStreamToByteArray;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.util.InputStreamToByteArray.delegate:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/util/InputStreamToByteArray;
Exceptions:
throws java.io.IOException
public void mark(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
getfield org.jboss.resteasy.util.InputStreamToByteArray.delegate:Ljava/io/InputStream;
iload 1
invokevirtual java.io.InputStream.mark:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/util/InputStreamToByteArray;
0 2 1 i I
MethodParameters:
Name Flags
i
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.RuntimeException
dup
getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.MESSAGES:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/Messages;
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.streamWrappedBySignature:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/util/InputStreamToByteArray;
Exceptions:
throws java.io.IOException
public boolean markSupported();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.util.InputStreamToByteArray.delegate:Ljava/io/InputStream;
invokevirtual java.io.InputStream.markSupported:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/util/InputStreamToByteArray;
}
SourceFile: "InputStreamToByteArray.java"