public class io.netty.handler.stream.ChunkedFile implements io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.stream.ChunkedFile
super_class: java.lang.Object
{
private final java.io.RandomAccessFile file;
descriptor: Ljava/io/RandomAccessFile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long startOffset;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long endOffset;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int chunkSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long offset;
descriptor: J
flags: (0x0002) ACC_PRIVATE
public void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
sipush 8192
invokespecial io.netty.handler.stream.ChunkedFile.<init>:(Ljava/io/File;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/stream/ChunkedFile;
0 2 1 file Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
public void <init>(java.io.File, int);
descriptor: (Ljava/io/File;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new java.io.RandomAccessFile
dup
aload 1
ldc "r"
invokespecial java.io.RandomAccessFile.<init>:(Ljava/io/File;Ljava/lang/String;)V
iload 2
invokespecial io.netty.handler.stream.ChunkedFile.<init>:(Ljava/io/RandomAccessFile;I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/stream/ChunkedFile;
0 2 1 file Ljava/io/File;
0 2 2 chunkSize I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
chunkSize
public void <init>(java.io.RandomAccessFile);
descriptor: (Ljava/io/RandomAccessFile;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
sipush 8192
invokespecial io.netty.handler.stream.ChunkedFile.<init>:(Ljava/io/RandomAccessFile;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/stream/ChunkedFile;
0 2 1 file Ljava/io/RandomAccessFile;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
public void <init>(java.io.RandomAccessFile, int);
descriptor: (Ljava/io/RandomAccessFile;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lconst_0
aload 1
invokevirtual java.io.RandomAccessFile.length:()J
iload 2
invokespecial io.netty.handler.stream.ChunkedFile.<init>:(Ljava/io/RandomAccessFile;JJI)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/stream/ChunkedFile;
0 2 1 file Ljava/io/RandomAccessFile;
0 2 2 chunkSize I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
chunkSize
public void <init>(java.io.RandomAccessFile, long, long, int);
descriptor: (Ljava/io/RandomAccessFile;JJI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 4 start local 6 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "file"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: io.netty.handler.stream.ChunkedFile java.io.RandomAccessFile long long int
StackMap stack:
lload 2
lconst_0
lcmp
ifge 7
4: new java.lang.IllegalArgumentException
dup
5: new java.lang.StringBuilder
dup
ldc "offset: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 2
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " (expected: 0 or greater)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
lload 4
lconst_0
lcmp
ifge 11
8: new java.lang.IllegalArgumentException
dup
9: new java.lang.StringBuilder
dup
ldc "length: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 4
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " (expected: 0 or greater)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
iload 6
ifgt 17
12: new java.lang.IllegalArgumentException
dup
13: new java.lang.StringBuilder
dup
ldc "chunkSize: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
14: ldc " (expected: a positive integer)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.netty.handler.stream.ChunkedFile.file:Ljava/io/RandomAccessFile;
18: aload 0
aload 0
lload 2
dup2_x1
putfield io.netty.handler.stream.ChunkedFile.startOffset:J
putfield io.netty.handler.stream.ChunkedFile.offset:J
19: aload 0
lload 2
lload 4
ladd
putfield io.netty.handler.stream.ChunkedFile.endOffset:J
20: aload 0
iload 6
putfield io.netty.handler.stream.ChunkedFile.chunkSize:I
21: aload 1
lload 2
invokevirtual java.io.RandomAccessFile.seek:(J)V
22: return
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lio/netty/handler/stream/ChunkedFile;
0 23 1 file Ljava/io/RandomAccessFile;
0 23 2 offset J
0 23 4 length J
0 23 6 chunkSize I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
offset
length
chunkSize
public long startOffset();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.stream.ChunkedFile.startOffset:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/stream/ChunkedFile;
public long endOffset();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.stream.ChunkedFile.endOffset:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/stream/ChunkedFile;
public long currentOffset();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.stream.ChunkedFile.offset:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/stream/ChunkedFile;
public boolean isEndOfInput();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.stream.ChunkedFile.offset:J
aload 0
getfield io.netty.handler.stream.ChunkedFile.endOffset:J
lcmp
ifge 1
aload 0
getfield io.netty.handler.stream.ChunkedFile.file:Ljava/io/RandomAccessFile;
invokevirtual java.io.RandomAccessFile.getChannel:()Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.isOpen:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/stream/ChunkedFile;
Exceptions:
throws java.lang.Exception
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.stream.ChunkedFile.file:Ljava/io/RandomAccessFile;
invokevirtual java.io.RandomAccessFile.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/stream/ChunkedFile;
Exceptions:
throws java.lang.Exception
public io.netty.buffer.ByteBuf readChunk(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)Lio/netty/buffer/ByteBuf;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
invokevirtual io.netty.handler.stream.ChunkedFile.readChunk:(Lio/netty/buffer/ByteBufAllocator;)Lio/netty/buffer/ByteBuf;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/stream/ChunkedFile;
0 1 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
ctx
public io.netty.buffer.ByteBuf readChunk(io.netty.buffer.ByteBufAllocator);
descriptor: (Lio/netty/buffer/ByteBufAllocator;)Lio/netty/buffer/ByteBuf;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.stream.ChunkedFile.offset:J
lstore 2
start local 2 1: lload 2
aload 0
getfield io.netty.handler.stream.ChunkedFile.endOffset:J
lcmp
iflt 3
2: aconst_null
areturn
3: StackMap locals: long
StackMap stack:
aload 0
getfield io.netty.handler.stream.ChunkedFile.chunkSize:I
i2l
aload 0
getfield io.netty.handler.stream.ChunkedFile.endOffset:J
lload 2
lsub
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 4
start local 4 4: aload 1
iload 4
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 5
start local 5 5: iconst_1
istore 6
start local 6 6: aload 0
getfield io.netty.handler.stream.ChunkedFile.file:Ljava/io/RandomAccessFile;
aload 5
invokevirtual io.netty.buffer.ByteBuf.array:()[B
aload 5
invokevirtual io.netty.buffer.ByteBuf.arrayOffset:()I
iload 4
invokevirtual java.io.RandomAccessFile.readFully:([BII)V
7: aload 5
iload 4
invokevirtual io.netty.buffer.ByteBuf.writerIndex:(I)Lio/netty/buffer/ByteBuf;
pop
8: aload 0
lload 2
iload 4
i2l
ladd
putfield io.netty.handler.stream.ChunkedFile.offset:J
9: iconst_0
istore 6
10: aload 5
astore 8
11: iload 6
ifeq 13
12: aload 5
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
13: StackMap locals: io.netty.handler.stream.ChunkedFile io.netty.buffer.ByteBufAllocator long int io.netty.buffer.ByteBuf int top io.netty.buffer.ByteBuf
StackMap stack:
aload 8
areturn
14: StackMap locals: io.netty.handler.stream.ChunkedFile io.netty.buffer.ByteBufAllocator long int io.netty.buffer.ByteBuf int
StackMap stack: java.lang.Throwable
astore 7
15: iload 6
ifeq 17
16: aload 5
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
17: StackMap locals: java.lang.Throwable
StackMap stack:
aload 7
athrow
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lio/netty/handler/stream/ChunkedFile;
0 18 1 allocator Lio/netty/buffer/ByteBufAllocator;
1 18 2 offset J
4 18 4 chunkSize I
5 18 5 buf Lio/netty/buffer/ByteBuf;
6 18 6 release Z
Exception table:
from to target type
6 11 14 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
allocator
public long length();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.stream.ChunkedFile.endOffset:J
aload 0
getfield io.netty.handler.stream.ChunkedFile.startOffset:J
lsub
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/stream/ChunkedFile;
public long progress();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.stream.ChunkedFile.offset:J
aload 0
getfield io.netty.handler.stream.ChunkedFile.startOffset:J
lsub
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/stream/ChunkedFile;
public java.lang.Object readChunk(io.netty.buffer.ByteBufAllocator);
descriptor: (Lio/netty/buffer/ByteBufAllocator;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.netty.handler.stream.ChunkedFile.readChunk:(Lio/netty/buffer/ByteBufAllocator;)Lio/netty/buffer/ByteBuf;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
public java.lang.Object readChunk(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.netty.handler.stream.ChunkedFile.readChunk:(Lio/netty/channel/ChannelHandlerContext;)Lio/netty/buffer/ByteBuf;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Ljava/lang/Object;Lio/netty/handler/stream/ChunkedInput<Lio/netty/buffer/ByteBuf;>;
SourceFile: "ChunkedFile.java"