public class com.sun.media.jfxmedia.locator.LocatorCache
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.media.jfxmedia.locator.LocatorCache
super_class: java.lang.Object
{
private final java.util.Map<java.net.URI, java.lang.ref.WeakReference<com.sun.media.jfxmedia.locator.LocatorCache$CacheReference>> uriCache;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/net/URI;Ljava/lang/ref/WeakReference<Lcom/sun/media/jfxmedia/locator/LocatorCache$CacheReference;>;>;
private final com.sun.media.jfxmedia.locator.LocatorCache$CacheDisposer cacheDisposer;
descriptor: Lcom/sun/media/jfxmedia/locator/LocatorCache$CacheDisposer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static com.sun.media.jfxmedia.locator.LocatorCache locatorCache();
descriptor: ()Lcom/sun/media/jfxmedia/locator/LocatorCache;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.sun.media.jfxmedia.locator.LocatorCache$CacheInitializer.globalInstance:Lcom/sun/media/jfxmedia/locator/LocatorCache;
areturn
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield com.sun.media.jfxmedia.locator.LocatorCache.uriCache:Ljava/util/Map;
2: aload 0
new com.sun.media.jfxmedia.locator.LocatorCache$CacheDisposer
dup
aload 0
invokespecial com.sun.media.jfxmedia.locator.LocatorCache$CacheDisposer.<init>:(Lcom/sun/media/jfxmedia/locator/LocatorCache;)V
putfield com.sun.media.jfxmedia.locator.LocatorCache.cacheDisposer:Lcom/sun/media/jfxmedia/locator/LocatorCache$CacheDisposer;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/media/jfxmedia/locator/LocatorCache;
public com.sun.media.jfxmedia.locator.LocatorCache$CacheReference registerURICache(java.net.URI, java.nio.ByteBuffer, java.lang.String);
descriptor: (Ljava/net/URI;Ljava/nio/ByteBuffer;Ljava/lang/String;)Lcom/sun/media/jfxmedia/locator/LocatorCache$CacheReference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_1
invokestatic com.sun.media.jfxmedia.logging.Logger.canLog:(I)Z
ifeq 5
1: iconst_1
new java.lang.StringBuilder
dup
ldc "New cache entry: URI "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: ldc ", buffer "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
3: ldc ", MIME type "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokestatic com.sun.media.jfxmedia.logging.Logger.logMsg:(ILjava/lang/String;)V
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.isDirect:()Z
ifne 10
6: aload 2
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/Buffer;
pop
7: aload 2
invokevirtual java.nio.ByteBuffer.capacity:()I
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
astore 4
start local 4 8: aload 4
aload 2
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
9: aload 4
astore 2
end local 4 10: StackMap locals:
StackMap stack:
new com.sun.media.jfxmedia.locator.LocatorCache$CacheReference
dup
aload 2
aload 3
invokespecial com.sun.media.jfxmedia.locator.LocatorCache$CacheReference.<init>:(Ljava/nio/ByteBuffer;Ljava/lang/String;)V
astore 4
start local 4 11: aload 0
getfield com.sun.media.jfxmedia.locator.LocatorCache.uriCache:Ljava/util/Map;
dup
astore 5
monitorenter
12: aload 0
getfield com.sun.media.jfxmedia.locator.LocatorCache.uriCache:Ljava/util/Map;
aload 1
new java.lang.ref.WeakReference
dup
aload 4
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: aload 5
monitorexit
14: goto 17
StackMap locals: com.sun.media.jfxmedia.locator.LocatorCache java.net.URI java.nio.ByteBuffer java.lang.String com.sun.media.jfxmedia.locator.LocatorCache$CacheReference java.util.Map
StackMap stack: java.lang.Throwable
15: aload 5
monitorexit
16: athrow
17: StackMap locals:
StackMap stack:
aload 4
aload 1
aload 0
getfield com.sun.media.jfxmedia.locator.LocatorCache.cacheDisposer:Lcom/sun/media/jfxmedia/locator/LocatorCache$CacheDisposer;
invokestatic com.sun.media.jfxmediaimpl.MediaDisposer.addResourceDisposer:(Ljava/lang/Object;Ljava/lang/Object;Lcom/sun/media/jfxmediaimpl/MediaDisposer$ResourceDisposer;)V
18: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/sun/media/jfxmedia/locator/LocatorCache;
0 19 1 sourceURI Ljava/net/URI;
0 19 2 data Ljava/nio/ByteBuffer;
0 19 3 mimeType Ljava/lang/String;
8 10 4 newData Ljava/nio/ByteBuffer;
11 19 4 ref Lcom/sun/media/jfxmedia/locator/LocatorCache$CacheReference;
Exception table:
from to target type
12 14 15 any
15 16 15 any
MethodParameters:
Name Flags
sourceURI
data
mimeType
public com.sun.media.jfxmedia.locator.LocatorCache$CacheReference fetchURICache(java.net.URI);
descriptor: (Ljava/net/URI;)Lcom/sun/media/jfxmedia/locator/LocatorCache$CacheReference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.media.jfxmedia.locator.LocatorCache.uriCache:Ljava/util/Map;
dup
astore 2
monitorenter
1: aload 0
getfield com.sun.media.jfxmedia.locator.LocatorCache.uriCache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
astore 3
start local 3 2: aload 3
ifnonnull 5
3: aload 2
monitorexit
4: aconst_null
areturn
5: StackMap locals: java.util.Map java.lang.ref.WeakReference
StackMap stack:
aload 3
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast com.sun.media.jfxmedia.locator.LocatorCache$CacheReference
astore 4
start local 4 6: aload 4
ifnull 14
7: iconst_1
invokestatic com.sun.media.jfxmedia.logging.Logger.canLog:(I)Z
ifeq 12
8: iconst_1
new java.lang.StringBuilder
dup
ldc "Fetched cache entry: URI "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
9: ldc ", buffer "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual com.sun.media.jfxmedia.locator.LocatorCache$CacheReference.getBuffer:()Ljava/nio/ByteBuffer;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
10: ldc ", MIME type "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual com.sun.media.jfxmedia.locator.LocatorCache$CacheReference.getMIMEType:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokestatic com.sun.media.jfxmedia.logging.Logger.logMsg:(ILjava/lang/String;)V
12: StackMap locals: com.sun.media.jfxmedia.locator.LocatorCache$CacheReference
StackMap stack:
aload 4
aload 2
monitorexit
13: areturn
end local 4 end local 3 14: StackMap locals:
StackMap stack:
aload 2
monitorexit
15: goto 18
StackMap locals:
StackMap stack: java.lang.Throwable
16: aload 2
monitorexit
17: athrow
18: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/sun/media/jfxmedia/locator/LocatorCache;
0 19 1 sourceURI Ljava/net/URI;
2 14 3 ref Ljava/lang/ref/WeakReference<Lcom/sun/media/jfxmedia/locator/LocatorCache$CacheReference;>;
6 14 4 cacheData Lcom/sun/media/jfxmedia/locator/LocatorCache$CacheReference;
Exception table:
from to target type
1 4 16 any
5 13 16 any
14 15 16 any
16 17 16 any
MethodParameters:
Name Flags
sourceURI
public boolean isCached(java.net.URI);
descriptor: (Ljava/net/URI;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.media.jfxmedia.locator.LocatorCache.uriCache:Ljava/util/Map;
dup
astore 2
monitorenter
1: aload 0
getfield com.sun.media.jfxmedia.locator.LocatorCache.uriCache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
aload 2
monitorexit
2: ireturn
3: StackMap locals: com.sun.media.jfxmedia.locator.LocatorCache java.net.URI java.util.Map
StackMap stack: java.lang.Throwable
aload 2
monitorexit
4: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/media/jfxmedia/locator/LocatorCache;
0 5 1 sourceURI Ljava/net/URI;
Exception table:
from to target type
1 2 3 any
3 4 3 any
MethodParameters:
Name Flags
sourceURI
}
SourceFile: "LocatorCache.java"
NestMembers:
com.sun.media.jfxmedia.locator.LocatorCache$CacheDisposer com.sun.media.jfxmedia.locator.LocatorCache$CacheInitializer com.sun.media.jfxmedia.locator.LocatorCache$CacheReference
InnerClasses:
private CacheDisposer = com.sun.media.jfxmedia.locator.LocatorCache$CacheDisposer of com.sun.media.jfxmedia.locator.LocatorCache
private CacheInitializer = com.sun.media.jfxmedia.locator.LocatorCache$CacheInitializer of com.sun.media.jfxmedia.locator.LocatorCache
public CacheReference = com.sun.media.jfxmedia.locator.LocatorCache$CacheReference of com.sun.media.jfxmedia.locator.LocatorCache
public abstract ResourceDisposer = com.sun.media.jfxmediaimpl.MediaDisposer$ResourceDisposer of com.sun.media.jfxmediaimpl.MediaDisposer