public class java.io.ByteArrayInputStream extends java.io.InputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.io.ByteArrayInputStream
super_class: java.io.InputStream
{
protected byte[] buf;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
protected int pos;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int mark;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int count;
descriptor: I
flags: (0x0004) ACC_PROTECTED
public void <init>(byte[]);
descriptor: ([B)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.InputStream.<init>:()V
1: aload 0
iconst_0
putfield java.io.ByteArrayInputStream.mark:I
2: aload 0
aload 1
putfield java.io.ByteArrayInputStream.buf:[B
3: aload 0
iconst_0
putfield java.io.ByteArrayInputStream.pos:I
4: aload 0
aload 1
arraylength
putfield java.io.ByteArrayInputStream.count:I
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/ByteArrayInputStream;
0 6 1 buf [B
MethodParameters:
Name Flags
buf
public void <init>(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
iconst_0
putfield java.io.ByteArrayInputStream.mark:I
2: aload 0
aload 1
putfield java.io.ByteArrayInputStream.buf:[B
3: aload 0
iload 2
putfield java.io.ByteArrayInputStream.pos:I
4: aload 0
iload 2
iload 3
iadd
aload 1
arraylength
invokestatic java.lang.Math.min:(II)I
putfield java.io.ByteArrayInputStream.count:I
5: aload 0
iload 2
putfield java.io.ByteArrayInputStream.mark:I
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/io/ByteArrayInputStream;
0 7 1 buf [B
0 7 2 offset I
0 7 3 length I
MethodParameters:
Name Flags
buf
offset
length
public synchronized int read();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield java.io.ByteArrayInputStream.pos:I
aload 0
getfield java.io.ByteArrayInputStream.count:I
if_icmpge 1
aload 0
getfield java.io.ByteArrayInputStream.buf:[B
aload 0
dup
getfield java.io.ByteArrayInputStream.pos:I
dup_x1
iconst_1
iadd
putfield java.io.ByteArrayInputStream.pos:I
baload
sipush 255
iand
goto 2
StackMap locals:
StackMap stack:
1: iconst_m1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/ByteArrayInputStream;
public synchronized int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 3
aload 1
arraylength
invokestatic java.util.Objects.checkFromIndexSize:(III)I
pop
1: aload 0
getfield java.io.ByteArrayInputStream.pos:I
aload 0
getfield java.io.ByteArrayInputStream.count:I
if_icmplt 3
2: iconst_m1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield java.io.ByteArrayInputStream.count:I
aload 0
getfield java.io.ByteArrayInputStream.pos:I
isub
istore 4
start local 4 4: iload 3
iload 4
if_icmple 6
5: iload 4
istore 3
6: StackMap locals: int
StackMap stack:
iload 3
ifgt 8
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
aload 0
getfield java.io.ByteArrayInputStream.buf:[B
aload 0
getfield java.io.ByteArrayInputStream.pos:I
aload 1
iload 2
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 0
dup
getfield java.io.ByteArrayInputStream.pos:I
iload 3
iadd
putfield java.io.ByteArrayInputStream.pos:I
10: iload 3
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/io/ByteArrayInputStream;
0 11 1 b [B
0 11 2 off I
0 11 3 len I
4 11 4 avail I
MethodParameters:
Name Flags
b
off
len
public synchronized byte[] readAllBytes();
descriptor: ()[B
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield java.io.ByteArrayInputStream.buf:[B
aload 0
getfield java.io.ByteArrayInputStream.pos:I
aload 0
getfield java.io.ByteArrayInputStream.count:I
invokestatic java.util.Arrays.copyOfRange:([BII)[B
astore 1
start local 1 1: aload 0
aload 0
getfield java.io.ByteArrayInputStream.count:I
putfield java.io.ByteArrayInputStream.pos:I
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/ByteArrayInputStream;
1 3 1 result [B
public int readNBytes(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
aload 1
iload 2
iload 3
invokevirtual java.io.ByteArrayInputStream.read:([BII)I
istore 4
start local 4 1: iload 4
iconst_m1
if_icmpne 2
iconst_0
goto 3
StackMap locals: int
StackMap stack:
2: iload 4
StackMap locals:
StackMap stack: int
3: 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 Ljava/io/ByteArrayInputStream;
0 4 1 b [B
0 4 2 off I
0 4 3 len I
1 4 4 n I
MethodParameters:
Name Flags
b
off
len
public synchronized long transferTo(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)J
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.ByteArrayInputStream.count:I
aload 0
getfield java.io.ByteArrayInputStream.pos:I
isub
istore 2
start local 2 1: aload 1
aload 0
getfield java.io.ByteArrayInputStream.buf:[B
aload 0
getfield java.io.ByteArrayInputStream.pos:I
iload 2
invokevirtual java.io.OutputStream.write:([BII)V
2: aload 0
aload 0
getfield java.io.ByteArrayInputStream.count:I
putfield java.io.ByteArrayInputStream.pos:I
3: iload 2
i2l
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/io/ByteArrayInputStream;
0 4 1 out Ljava/io/OutputStream;
1 4 2 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
public synchronized long skip(long);
descriptor: (J)J
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield java.io.ByteArrayInputStream.count:I
aload 0
getfield java.io.ByteArrayInputStream.pos:I
isub
i2l
lstore 3
start local 3 1: lload 1
lload 3
lcmp
ifge 5
2: lload 1
lconst_0
lcmp
ifge 3
lconst_0
goto 4
StackMap locals: long
StackMap stack:
3: lload 1
StackMap locals:
StackMap stack: long
4: lstore 3
5: StackMap locals:
StackMap stack:
aload 0
dup
getfield java.io.ByteArrayInputStream.pos:I
i2l
lload 3
ladd
l2i
putfield java.io.ByteArrayInputStream.pos:I
6: lload 3
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/io/ByteArrayInputStream;
0 7 1 n J
1 7 3 k J
MethodParameters:
Name Flags
n
public synchronized int available();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.io.ByteArrayInputStream.count:I
aload 0
getfield java.io.ByteArrayInputStream.pos:I
isub
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/ByteArrayInputStream;
public boolean markSupported();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/ByteArrayInputStream;
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
aload 0
getfield java.io.ByteArrayInputStream.pos:I
putfield java.io.ByteArrayInputStream.mark:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/io/ByteArrayInputStream;
0 2 1 readAheadLimit I
MethodParameters:
Name Flags
readAheadLimit
public synchronized void reset();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield java.io.ByteArrayInputStream.mark:I
putfield java.io.ByteArrayInputStream.pos:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/io/ByteArrayInputStream;
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 Ljava/io/ByteArrayInputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "ByteArrayInputStream.java"