class com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder 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$URIConnectionHolder
super_class: com.sun.media.jfxmedia.locator.ConnectionHolder
{
private java.net.URI uri;
descriptor: Ljava/net/URI;
flags: (0x0002) ACC_PRIVATE
private java.net.URLConnection urlConnection;
descriptor: Ljava/net/URLConnection;
flags: (0x0002) ACC_PRIVATE
void <init>(java.net.URI, java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Ljava/net/URI;Ljava/util/Map;)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial com.sun.media.jfxmedia.locator.ConnectionHolder.<init>:()V
1: aload 0
aload 1
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.uri:Ljava/net/URI;
2: aload 0
aload 1
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
3: aload 2
ifnull 10
4: aload 2
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 9
StackMap locals: com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder java.net.URI java.util.Map top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 6: aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
astore 5
start local 5 7: aload 5
instanceof java.lang.String
ifeq 9
8: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 5
checkcast java.lang.String
invokevirtual java.net.URLConnection.setRequestProperty:(Ljava/lang/String;Ljava/lang/String;)V
end local 5 end local 3 9: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
10: StackMap locals: com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder java.net.URI java.util.Map
StackMap stack:
aload 0
aload 0
aconst_null
invokevirtual com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.openChannel:(Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.channel:Ljava/nio/channels/ReadableByteChannel;
11: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$URIConnectionHolder;
0 12 1 uri Ljava/net/URI;
0 12 2 connectionProperties Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
6 9 3 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;
7 9 5 value Ljava/lang/Object;
Exceptions:
throws java.io.IOException
Signature: (Ljava/net/URI;Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
uri
connectionProperties
boolean needBuffer();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.uri:Ljava/net/URI;
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 1
start local 1 1: ldc "http"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 2
ldc "https"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 2
iconst_0
ireturn
StackMap locals: java.lang.String
StackMap stack:
2: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$URIConnectionHolder;
1 3 1 scheme Ljava/lang/String;
boolean isSeekable();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
instanceof java.net.HttpURLConnection
ifne 1
aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
instanceof java.net.JarURLConnection
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$URIConnectionHolder;
boolean isRandomAccess();
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$URIConnectionHolder;
int readBlock(long, int);
descriptor: (JI)I
flags: (0x0000)
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 3 0: new java.io.IOException
dup
invokespecial java.io.IOException.<init>:()V
athrow
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$URIConnectionHolder;
0 1 1 position J
0 1 3 size I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
position
size
public long seek(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
instanceof java.net.HttpURLConnection
ifeq 27
1: aconst_null
astore 3
start local 3 2: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.uri:Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
astore 3
3: aload 3
checkcast java.net.HttpURLConnection
astore 4
start local 4 4: aload 4
ldc "GET"
invokevirtual java.net.HttpURLConnection.setRequestMethod:(Ljava/lang/String;)V
5: aload 4
iconst_0
invokevirtual java.net.HttpURLConnection.setUseCaches:(Z)V
6: aload 4
ldc "Range"
new java.lang.StringBuilder
dup
ldc "bytes="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.net.HttpURLConnection.setRequestProperty:(Ljava/lang/String;Ljava/lang/String;)V
7: aload 4
invokevirtual java.net.HttpURLConnection.getResponseCode:()I
sipush 206
if_icmpne 16
8: aload 0
invokevirtual com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.closeConnection:()V
9: aload 0
aload 3
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
10: aconst_null
astore 3
11: aload 0
aload 0
aconst_null
invokevirtual com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.openChannel:(Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.channel:Ljava/nio/channels/ReadableByteChannel;
12: lload 1
lstore 6
13: aload 3
ifnull 15
14: aload 3
invokestatic com.sun.media.jfxmedia.locator.Locator.closeConnection:(Ljava/net/URLConnection;)V
15: StackMap locals: com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder long java.net.URLConnection java.net.HttpURLConnection top long
StackMap stack:
lload 6
lreturn
16: StackMap locals: com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder long java.net.URLConnection java.net.HttpURLConnection
StackMap stack:
aload 3
ifnull 18
17: aload 3
invokestatic com.sun.media.jfxmedia.locator.Locator.closeConnection:(Ljava/net/URLConnection;)V
18: StackMap locals:
StackMap stack:
ldc -1
lreturn
end local 4 19: StackMap locals: com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder long java.net.URLConnection
StackMap stack: java.io.IOException
pop
20: aload 3
ifnull 22
21: aload 3
invokestatic com.sun.media.jfxmedia.locator.Locator.closeConnection:(Ljava/net/URLConnection;)V
22: StackMap locals:
StackMap stack:
ldc -1
lreturn
23: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
24: aload 3
ifnull 26
25: aload 3
invokestatic com.sun.media.jfxmedia.locator.Locator.closeConnection:(Ljava/net/URLConnection;)V
26: StackMap locals: com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder long java.net.URLConnection top java.lang.Throwable
StackMap stack:
aload 5
athrow
end local 3 27: StackMap locals: com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder long
StackMap stack:
aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
instanceof java.net.JarURLConnection
ifeq 41
28: aload 0
invokevirtual com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.closeConnection:()V
29: aload 0
aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.uri:Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
30: lload 1
lstore 3
start local 3 31: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
invokevirtual java.net.URLConnection.getInputStream:()Ljava/io/InputStream;
astore 5
start local 5 32: StackMap locals: long java.io.InputStream
StackMap stack:
aload 5
lload 3
invokevirtual java.io.InputStream.skip:(J)J
lstore 6
start local 6 33: lload 3
lload 6
lsub
lstore 3
end local 6 34: lload 3
lconst_0
35: lcmp
ifgt 32
36: aload 0
aload 0
aload 5
invokevirtual com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.openChannel:(Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.channel:Ljava/nio/channels/ReadableByteChannel;
37: lload 1
38: lreturn
end local 5 end local 3 39: StackMap locals: com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder long
StackMap stack: java.io.IOException
pop
40: ldc -1
lreturn
41: StackMap locals:
StackMap stack:
ldc -1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$URIConnectionHolder;
0 42 1 position J
2 27 3 tmpURLConnection Ljava/net/URLConnection;
4 19 4 httpConnection Ljava/net/HttpURLConnection;
31 39 3 skip_left J
32 39 5 inputStream Ljava/io/InputStream;
33 34 6 skip J
Exception table:
from to target type
2 13 19 Class java.io.IOException
2 13 23 any
19 20 23 any
28 38 39 Class java.io.IOException
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
invokespecial com.sun.media.jfxmedia.locator.ConnectionHolder.closeConnection:()V
1: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
invokestatic com.sun.media.jfxmedia.locator.Locator.closeConnection:(Ljava/net/URLConnection;)V
2: aload 0
aconst_null
putfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$URIConnectionHolder;
private java.nio.channels.ReadableByteChannel openChannel(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: aload 0
getfield com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder.urlConnection:Ljava/net/URLConnection;
invokevirtual java.net.URLConnection.getInputStream:()Ljava/io/InputStream;
invokestatic java.nio.channels.Channels.newChannel:(Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;
goto 3
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.nio.channels.Channels.newChannel:(Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;
3: StackMap locals:
StackMap stack: java.nio.channels.ReadableByteChannel
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/media/jfxmedia/locator/ConnectionHolder$URIConnectionHolder;
0 4 1 inputStream Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inputStream
}
SourceFile: "ConnectionHolder.java"
NestHost: com.sun.media.jfxmedia.locator.ConnectionHolder
InnerClasses:
private URIConnectionHolder = com.sun.media.jfxmedia.locator.ConnectionHolder$URIConnectionHolder of com.sun.media.jfxmedia.locator.ConnectionHolder
public abstract Entry = java.util.Map$Entry of java.util.Map