class com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder extends com.sun.media.jfxmedia.locator.ConnectionHolder
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder
super_class: com.sun.media.jfxmedia.locator.ConnectionHolder
{
private final java.nio.ByteBuffer backingBuffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.sun.media.jfxmedia.locator.ConnectionHolder.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "Can't connect to null buffer..."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder java.nio.ByteBuffer
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.isDirect:()Z
ifeq 6
4: aload 0
aload 1
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
5: goto 8
6: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.nio.ByteBuffer.capacity:()I
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
7: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
aload 1
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
8: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/Buffer;
pop
9: aload 0
new com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder$1
dup
aload 0
invokespecial com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder$1.<init>:(Lcom/sun/media/jfxmedia/locator/ConnectionHolder$MemoryConnectionHolder;)V
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.channel:Ljava/nio/channels/ReadableByteChannel;
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$MemoryConnectionHolder;
0 11 1 buf Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
buf
int readBlock(long, int);
descriptor: (JI)I
flags: (0x0000)
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.channel:Ljava/nio/channels/ReadableByteChannel;
ifnonnull 2
1: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
lload 1
l2i
aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
if_icmple 4
3: iconst_m1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
lload 1
l2i
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
5: aload 0
aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.slice:()Ljava/nio/ByteBuffer;
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.buffer:Ljava/nio/ByteBuffer;
6: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
iload 3
invokestatic java.lang.Math.min:(II)I
istore 4
start local 4 7: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.buffer:Ljava/nio/ByteBuffer;
iload 4
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
8: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
iload 4
iadd
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
9: iload 4
ireturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$MemoryConnectionHolder;
0 10 1 position J
0 10 3 size I
7 10 4 actual I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
position
size
boolean needBuffer();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$MemoryConnectionHolder;
boolean isSeekable();
descriptor: ()Z
flags: (0x0000)
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 Lcom/sun/media/jfxmedia/locator/ConnectionHolder$MemoryConnectionHolder;
boolean isRandomAccess();
descriptor: ()Z
flags: (0x0000)
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 Lcom/sun/media/jfxmedia/locator/ConnectionHolder$MemoryConnectionHolder;
public long seek(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: lload 1
l2i
aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
if_icmpge 4
1: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
2: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.backingBuffer:Ljava/nio/ByteBuffer;
lload 1
l2i
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
3: lload 1
lreturn
4: StackMap locals:
StackMap stack:
ldc -1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$MemoryConnectionHolder;
0 5 1 position J
MethodParameters:
Name Flags
position
public void closeConnection();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder.channel:Ljava/nio/channels/ReadableByteChannel;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$MemoryConnectionHolder;
}
SourceFile: "ConnectionHolder.java"
NestHost: com.sun.media.jfxmedia.locator.ConnectionHolder
InnerClasses:
private MemoryConnectionHolder = com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder of com.sun.media.jfxmedia.locator.ConnectionHolder
com.sun.media.jfxmedia.locator.ConnectionHolder$MemoryConnectionHolder$1