class jdk.nio.zipfs.ZipFileSystem$EntryInputStream extends java.io.InputStream
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.nio.zipfs.ZipFileSystem$EntryInputStream
super_class: java.io.InputStream
{
private final java.nio.channels.SeekableByteChannel zfch;
descriptor: Ljava/nio/channels/SeekableByteChannel;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long pos;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long rem;
descriptor: J
flags: (0x0002) ACC_PRIVATE
final jdk.nio.zipfs.ZipFileSystem this$0;
descriptor: Ljdk/nio/zipfs/ZipFileSystem;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(jdk.nio.zipfs.ZipFileSystem, jdk.nio.zipfs.ZipFileSystem$Entry, java.nio.channels.SeekableByteChannel);
descriptor: (Ljdk/nio/zipfs/ZipFileSystem;Ljdk/nio/zipfs/ZipFileSystem$Entry;Ljava/nio/channels/SeekableByteChannel;)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=4
start local 0 start local 2 start local 3 0: aload 0
aload 1
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.this$0:Ljdk/nio/zipfs/ZipFileSystem;
1: aload 0
invokespecial java.io.InputStream.<init>:()V
2: aload 0
aload 3
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.zfch:Ljava/nio/channels/SeekableByteChannel;
3: aload 0
aload 2
getfield jdk.nio.zipfs.ZipFileSystem$Entry.csize:J
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
4: aload 0
aload 2
getfield jdk.nio.zipfs.ZipFileSystem$Entry.locoff:J
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
5: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
ldc -1
lcmp
ifne 10
6: aload 1
aload 2
getfield jdk.nio.zipfs.ZipFileSystem$Entry.name:[B
invokevirtual jdk.nio.zipfs.ZipFileSystem.getEntry:([B)Ljdk/nio/zipfs/ZipFileSystem$Entry;
astore 4
start local 4 7: aload 4
ifnonnull 9
8: new java.util.zip.ZipException
dup
new java.lang.StringBuilder
dup
ldc "invalid loc for entry <"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
aload 2
getfield jdk.nio.zipfs.ZipFileSystem$Entry.name:[B
invokevirtual jdk.nio.zipfs.ZipFileSystem.getString:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ">"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.util.zip.ZipException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: jdk.nio.zipfs.ZipFileSystem$EntryInputStream jdk.nio.zipfs.ZipFileSystem jdk.nio.zipfs.ZipFileSystem$Entry java.nio.channels.SeekableByteChannel jdk.nio.zipfs.ZipFileSystem$Entry
StackMap stack:
aload 0
aload 4
getfield jdk.nio.zipfs.ZipFileSystem$Entry.locoff:J
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
end local 4 10: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
lneg
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
11: return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/nio/zipfs/ZipFileSystem$EntryInputStream;
0 12 2 e Ljdk/nio/zipfs/ZipFileSystem$Entry;
0 12 3 zfch Ljava/nio/channels/SeekableByteChannel;
7 10 4 e2 Ljdk/nio/zipfs/ZipFileSystem$Entry;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
this$0 final
e
zfch
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.this$0:Ljdk/nio/zipfs/ZipFileSystem;
invokevirtual jdk.nio.zipfs.ZipFileSystem.ensureOpen:()V
1: aload 0
invokevirtual jdk.nio.zipfs.ZipFileSystem$EntryInputStream.initDataPos:()V
2: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
lconst_0
lcmp
ifne 4
3: iconst_m1
ireturn
4: StackMap locals:
StackMap stack:
iload 3
ifgt 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
iload 3
i2l
aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
lcmp
ifle 8
7: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
l2i
istore 3
8: StackMap locals:
StackMap stack:
aload 1
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 6
start local 6 9: aload 6
iload 2
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
10: aload 6
iload 2
iload 3
iadd
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
11: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.zfch:Ljava/nio/channels/SeekableByteChannel;
dup
astore 7
monitorenter
12: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.zfch:Ljava/nio/channels/SeekableByteChannel;
aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
invokeinterface java.nio.channels.SeekableByteChannel.position:(J)Ljava/nio/channels/SeekableByteChannel;
aload 6
invokeinterface java.nio.channels.SeekableByteChannel.read:(Ljava/nio/ByteBuffer;)I
i2l
lstore 4
start local 4 13: aload 7
monitorexit
14: goto 17
end local 4 StackMap locals: jdk.nio.zipfs.ZipFileSystem$EntryInputStream byte[] int int top top java.nio.ByteBuffer java.nio.channels.SeekableByteChannel
StackMap stack: java.lang.Throwable
15: aload 7
monitorexit
16: athrow
start local 4 17: StackMap locals: jdk.nio.zipfs.ZipFileSystem$EntryInputStream byte[] int int long java.nio.ByteBuffer
StackMap stack:
lload 4
lconst_0
lcmp
ifle 20
18: aload 0
dup
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
lload 4
ladd
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
19: aload 0
dup
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
lload 4
lsub
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
20: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
lconst_0
lcmp
ifne 22
21: aload 0
invokevirtual jdk.nio.zipfs.ZipFileSystem$EntryInputStream.close:()V
22: StackMap locals:
StackMap stack:
lload 4
l2i
ireturn
end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Ljdk/nio/zipfs/ZipFileSystem$EntryInputStream;
0 23 1 b [B
0 23 2 off I
0 23 3 len I
13 15 4 n J
17 23 4 n J
9 23 6 bb Ljava/nio/ByteBuffer;
Exception table:
from to target type
12 14 15 any
15 16 15 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: iconst_1
newarray 8
astore 1
start local 1 1: aload 0
aload 1
iconst_0
iconst_1
invokevirtual jdk.nio.zipfs.ZipFileSystem$EntryInputStream.read:([BII)I
iconst_1
if_icmpne 3
2: aload 1
iconst_0
baload
sipush 255
iand
ireturn
3: StackMap locals: byte[]
StackMap stack:
iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nio/zipfs/ZipFileSystem$EntryInputStream;
1 4 1 b [B
Exceptions:
throws java.io.IOException
public long skip(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.this$0:Ljdk/nio/zipfs/ZipFileSystem;
invokevirtual jdk.nio.zipfs.ZipFileSystem.ensureOpen:()V
1: lload 1
aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
lcmp
ifle 3
2: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
lstore 1
3: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
lload 1
ladd
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
4: aload 0
dup
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
lload 1
lsub
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
5: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
lconst_0
lcmp
ifne 7
6: aload 0
invokevirtual jdk.nio.zipfs.ZipFileSystem$EntryInputStream.close:()V
7: StackMap locals:
StackMap stack:
lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/nio/zipfs/ZipFileSystem$EntryInputStream;
0 8 1 n J
MethodParameters:
Name Flags
n
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
ldc 2147483647
lcmp
ifle 1
ldc 2147483647
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
l2i
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nio/zipfs/ZipFileSystem$EntryInputStream;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.rem:J
1: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.this$0:Ljdk/nio/zipfs/ZipFileSystem;
getfield jdk.nio.zipfs.ZipFileSystem.streams:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nio/zipfs/ZipFileSystem$EntryInputStream;
private void initDataPos();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
lconst_0
lcmp
ifgt 6
1: aload 0
aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
lneg
aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.this$0:Ljdk/nio/zipfs/ZipFileSystem;
getfield jdk.nio.zipfs.ZipFileSystem.locpos:J
ladd
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
2: bipush 30
newarray 8
astore 1
start local 1 3: aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.this$0:Ljdk/nio/zipfs/ZipFileSystem;
aload 1
iconst_0
aload 1
arraylength
i2l
aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
invokevirtual jdk.nio.zipfs.ZipFileSystem.readFullyAt:([BIJJ)J
ldc 30
lcmp
ifeq 5
4: new java.util.zip.ZipException
dup
new java.lang.StringBuilder
dup
ldc "invalid loc "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " for entry reading"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.util.zip.ZipException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: byte[]
StackMap stack:
aload 0
dup
getfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
bipush 30
aload 1
invokestatic jdk.nio.zipfs.ZipConstants.LOCNAM:([B)I
iadd
aload 1
invokestatic jdk.nio.zipfs.ZipConstants.LOCEXT:([B)I
iadd
i2l
ladd
putfield jdk.nio.zipfs.ZipFileSystem$EntryInputStream.pos:J
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/nio/zipfs/ZipFileSystem$EntryInputStream;
3 6 1 buf [B
Exceptions:
throws java.io.IOException
}
SourceFile: "ZipFileSystem.java"
NestHost: jdk.nio.zipfs.ZipFileSystem
InnerClasses:
Entry = jdk.nio.zipfs.ZipFileSystem$Entry of jdk.nio.zipfs.ZipFileSystem
private EntryInputStream = jdk.nio.zipfs.ZipFileSystem$EntryInputStream of jdk.nio.zipfs.ZipFileSystem