public class sun.net.www.protocol.file.FileURLConnection extends sun.net.www.URLConnection
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.www.protocol.file.FileURLConnection
super_class: sun.net.www.URLConnection
{
static java.lang.String CONTENT_LENGTH;
descriptor: Ljava/lang/String;
flags: (0x0008) ACC_STATIC
static java.lang.String CONTENT_TYPE;
descriptor: Ljava/lang/String;
flags: (0x0008) ACC_STATIC
static java.lang.String TEXT_PLAIN;
descriptor: Ljava/lang/String;
flags: (0x0008) ACC_STATIC
static java.lang.String LAST_MODIFIED;
descriptor: Ljava/lang/String;
flags: (0x0008) ACC_STATIC
java.lang.String contentType;
descriptor: Ljava/lang/String;
flags: (0x0000)
java.io.InputStream is;
descriptor: Ljava/io/InputStream;
flags: (0x0000)
java.io.File file;
descriptor: Ljava/io/File;
flags: (0x0000)
java.lang.String filename;
descriptor: Ljava/lang/String;
flags: (0x0000)
boolean isDirectory;
descriptor: Z
flags: (0x0000)
boolean exists;
descriptor: Z
flags: (0x0000)
java.util.List<java.lang.String> files;
descriptor: Ljava/util/List;
flags: (0x0000)
Signature: Ljava/util/List<Ljava/lang/String;>;
long length;
descriptor: J
flags: (0x0000)
long lastModified;
descriptor: J
flags: (0x0000)
private boolean ;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
java.security.Permission permission;
descriptor: Ljava/security/Permission;
flags: (0x0000)
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "content-length"
putstatic sun.net.www.protocol.file.FileURLConnection.CONTENT_LENGTH:Ljava/lang/String;
1: ldc "content-type"
putstatic sun.net.www.protocol.file.FileURLConnection.CONTENT_TYPE:Ljava/lang/String;
2: ldc "text/plain"
putstatic sun.net.www.protocol.file.FileURLConnection.TEXT_PLAIN:Ljava/lang/String;
3: ldc "last-modified"
putstatic sun.net.www.protocol.file.FileURLConnection.LAST_MODIFIED:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(java.net.URL, java.io.File);
descriptor: (Ljava/net/URL;Ljava/io/File;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial sun.net.www.URLConnection.<init>:(Ljava/net/URL;)V
1: aload 0
iconst_0
putfield sun.net.www.protocol.file.FileURLConnection.isDirectory:Z
2: aload 0
iconst_0
putfield sun.net.www.protocol.file.FileURLConnection.exists:Z
3: aload 0
ldc -1
putfield sun.net.www.protocol.file.FileURLConnection.length:J
4: aload 0
lconst_0
putfield sun.net.www.protocol.file.FileURLConnection.lastModified:J
5: aload 0
iconst_0
putfield sun.net.www.protocol.file.FileURLConnection.initializedHeaders:Z
6: aload 0
aload 2
putfield sun.net.www.protocol.file.FileURLConnection.file:Ljava/io/File;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/www/protocol/file/FileURLConnection;
0 8 1 u Ljava/net/URL;
0 8 2 file Ljava/io/File;
MethodParameters:
Name Flags
u
file
public void connect();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.connected:Z
ifne 18
1: aload 0
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.file:Ljava/io/File;
invokevirtual java.io.File.toString:()Ljava/lang/String;
putfield sun.net.www.protocol.file.FileURLConnection.filename:Ljava/lang/String;
2: aload 0
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.file:Ljava/io/File;
invokevirtual java.io.File.isDirectory:()Z
putfield sun.net.www.protocol.file.FileURLConnection.isDirectory:Z
3: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.isDirectory:Z
ifeq 9
4: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.file:Ljava/io/File;
invokevirtual java.io.File.list:()[Ljava/lang/String;
astore 1
start local 1 5: aload 1
ifnonnull 7
6: new java.io.FileNotFoundException
dup
new java.lang.StringBuilder
dup
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.filename:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " exists, but is not accessible"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.lang.String[]
StackMap stack:
aload 0
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
putfield sun.net.www.protocol.file.FileURLConnection.files:Ljava/util/List;
end local 1 8: goto 17
9: StackMap locals:
StackMap stack:
aload 0
new java.io.BufferedInputStream
dup
new java.io.FileInputStream
dup
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.filename:Ljava/lang/String;
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
putfield sun.net.www.protocol.file.FileURLConnection.is:Ljava/io/InputStream;
10: invokestatic sun.net.ProgressMonitor.getDefault:()Lsun/net/ProgressMonitor;
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.url:Ljava/net/URL;
ldc "GET"
invokevirtual sun.net.ProgressMonitor.shouldMeterInput:(Ljava/net/URL;Ljava/lang/String;)Z
istore 1
start local 1 11: iload 1
ifeq 17
12: new sun.net.ProgressSource
dup
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.url:Ljava/net/URL;
ldc "GET"
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.file:Ljava/io/File;
invokevirtual java.io.File.length:()J
invokespecial sun.net.ProgressSource.<init>:(Ljava/net/URL;Ljava/lang/String;J)V
astore 2
start local 2 13: aload 0
new sun.net.www.MeteredStream
dup
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.is:Ljava/io/InputStream;
aload 2
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.file:Ljava/io/File;
invokevirtual java.io.File.length:()J
invokespecial sun.net.www.MeteredStream.<init>:(Ljava/io/InputStream;Lsun/net/ProgressSource;J)V
putfield sun.net.www.protocol.file.FileURLConnection.is:Ljava/io/InputStream;
end local 2 end local 1 14: goto 17
StackMap locals:
StackMap stack: java.io.IOException
15: astore 1
start local 1 16: aload 1
athrow
end local 1 17: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.net.www.protocol.file.FileURLConnection.connected:Z
18: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/net/www/protocol/file/FileURLConnection;
5 8 1 fileList [Ljava/lang/String;
11 14 1 meteredInput Z
13 14 2 pi Lsun/net/ProgressSource;
16 17 1 e Ljava/io/IOException;
Exception table:
from to target type
1 14 15 Class java.io.IOException
Exceptions:
throws java.io.IOException
private void ();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.protocol.file.FileURLConnection.connect:()V
1: aload 0
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.file:Ljava/io/File;
invokevirtual java.io.File.exists:()Z
putfield sun.net.www.protocol.file.FileURLConnection.exists:Z
2: goto 4
StackMap locals:
StackMap stack: java.io.IOException
3: pop
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.initializedHeaders:Z
ifeq 5
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.exists:Z
ifne 22
5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.file:Ljava/io/File;
invokevirtual java.io.File.length:()J
putfield sun.net.www.protocol.file.FileURLConnection.length:J
6: aload 0
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.file:Ljava/io/File;
invokevirtual java.io.File.lastModified:()J
putfield sun.net.www.protocol.file.FileURLConnection.lastModified:J
7: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.isDirectory:Z
ifne 20
8: invokestatic java.net.URLConnection.getFileNameMap:()Ljava/net/FileNameMap;
astore 1
start local 1 9: aload 0
aload 1
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.filename:Ljava/lang/String;
invokeinterface java.net.FileNameMap.getContentTypeFor:(Ljava/lang/String;)Ljava/lang/String;
putfield sun.net.www.protocol.file.FileURLConnection.contentType:Ljava/lang/String;
10: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.contentType:Ljava/lang/String;
ifnull 12
11: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.properties:Lsun/net/www/MessageHeader;
getstatic sun.net.www.protocol.file.FileURLConnection.CONTENT_TYPE:Ljava/lang/String;
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.contentType:Ljava/lang/String;
invokevirtual sun.net.www.MessageHeader.add:(Ljava/lang/String;Ljava/lang/String;)V
12: StackMap locals: java.net.FileNameMap
StackMap stack:
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.properties:Lsun/net/www/MessageHeader;
getstatic sun.net.www.protocol.file.FileURLConnection.CONTENT_LENGTH:Ljava/lang/String;
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.length:J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokevirtual sun.net.www.MessageHeader.add:(Ljava/lang/String;Ljava/lang/String;)V
13: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.lastModified:J
lconst_0
lcmp
ifeq 21
14: new java.util.Date
dup
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.lastModified:J
invokespecial java.util.Date.<init>:(J)V
astore 2
start local 2 15: new java.text.SimpleDateFormat
dup
ldc "EEE, dd MMM yyyy HH:mm:ss 'GMT'"
getstatic java.util.Locale.US:Ljava/util/Locale;
invokespecial java.text.SimpleDateFormat.<init>:(Ljava/lang/String;Ljava/util/Locale;)V
16: astore 3
start local 3 17: aload 3
ldc "GMT"
invokestatic java.util.TimeZone.getTimeZone:(Ljava/lang/String;)Ljava/util/TimeZone;
invokevirtual java.text.SimpleDateFormat.setTimeZone:(Ljava/util/TimeZone;)V
18: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.properties:Lsun/net/www/MessageHeader;
getstatic sun.net.www.protocol.file.FileURLConnection.LAST_MODIFIED:Ljava/lang/String;
aload 3
aload 2
invokevirtual java.text.SimpleDateFormat.format:(Ljava/util/Date;)Ljava/lang/String;
invokevirtual sun.net.www.MessageHeader.add:(Ljava/lang/String;Ljava/lang/String;)V
end local 3 end local 2 end local 1 19: goto 21
20: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.properties:Lsun/net/www/MessageHeader;
getstatic sun.net.www.protocol.file.FileURLConnection.CONTENT_TYPE:Ljava/lang/String;
getstatic sun.net.www.protocol.file.FileURLConnection.TEXT_PLAIN:Ljava/lang/String;
invokevirtual sun.net.www.MessageHeader.add:(Ljava/lang/String;Ljava/lang/String;)V
21: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.net.www.protocol.file.FileURLConnection.initializedHeaders:Z
22: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/net/www/protocol/file/FileURLConnection;
9 19 1 map Ljava/net/FileNameMap;
15 19 2 date Ljava/util/Date;
17 19 3 fo Ljava/text/SimpleDateFormat;
Exception table:
from to target type
0 2 3 Class java.io.IOException
public java.lang.String (java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.net.www.protocol.file.FileURLConnection.initializeHeaders:()V
1: aload 0
aload 1
invokespecial sun.net.www.URLConnection.getHeaderField:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/protocol/file/FileURLConnection;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.String (int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.net.www.protocol.file.FileURLConnection.initializeHeaders:()V
1: aload 0
iload 1
invokespecial sun.net.www.URLConnection.getHeaderField:(I)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/protocol/file/FileURLConnection;
0 2 1 n I
MethodParameters:
Name Flags
n
public int getContentLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.protocol.file.FileURLConnection.initializeHeaders:()V
1: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.length:J
ldc 2147483647
lcmp
ifle 3
2: iconst_m1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.length:J
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/www/protocol/file/FileURLConnection;
public long getContentLengthLong();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.protocol.file.FileURLConnection.initializeHeaders:()V
1: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.length:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/protocol/file/FileURLConnection;
public java.lang.String (int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.net.www.protocol.file.FileURLConnection.initializeHeaders:()V
1: aload 0
iload 1
invokespecial sun.net.www.URLConnection.getHeaderFieldKey:(I)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/protocol/file/FileURLConnection;
0 2 1 n I
MethodParameters:
Name Flags
n
public sun.net.www.MessageHeader ();
descriptor: ()Lsun/net/www/MessageHeader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.protocol.file.FileURLConnection.initializeHeaders:()V
1: aload 0
invokespecial sun.net.www.URLConnection.getProperties:()Lsun/net/www/MessageHeader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/protocol/file/FileURLConnection;
public long getLastModified();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.protocol.file.FileURLConnection.initializeHeaders:()V
1: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.lastModified:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/protocol/file/FileURLConnection;
public synchronized java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.protocol.file.FileURLConnection.connect:()V
1: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.is:Ljava/io/InputStream;
ifnonnull 18
2: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.isDirectory:Z
ifeq 17
3: invokestatic java.net.URLConnection.getFileNameMap:()Ljava/net/FileNameMap;
pop
4: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 5: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.files:Ljava/util/List;
ifnonnull 7
6: new java.io.FileNotFoundException
dup
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.filename:Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.files:Ljava/util/List;
invokestatic java.text.Collator.getInstance:()Ljava/text/Collator;
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
8: iconst_0
istore 2
start local 2 9: goto 14
10: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.files:Ljava/util/List;
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 11: aload 1
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
12: aload 1
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 3 13: iinc 2 1
StackMap locals:
StackMap stack:
14: iload 2
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.files:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 10
end local 2 15: aload 0
new java.io.ByteArrayInputStream
dup
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
putfield sun.net.www.protocol.file.FileURLConnection.is:Ljava/io/InputStream;
end local 1 16: goto 18
17: StackMap locals:
StackMap stack:
new java.io.FileNotFoundException
dup
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.filename:Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.is:Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/net/www/protocol/file/FileURLConnection;
5 16 1 sb Ljava/lang/StringBuilder;
9 15 2 i I
11 13 3 fileName Ljava/lang/String;
Exceptions:
throws java.io.IOException
public java.security.Permission getPermission();
descriptor: ()Ljava/security/Permission;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.permission:Ljava/security/Permission;
ifnonnull 11
1: aload 0
getfield sun.net.www.protocol.file.FileURLConnection.url:Ljava/net/URL;
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
invokestatic sun.net.www.ParseUtil.decode:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 2: getstatic java.io.File.separatorChar:C
bipush 47
if_icmpne 5
3: aload 0
new java.io.FilePermission
dup
aload 1
ldc "read"
invokespecial java.io.FilePermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
putfield sun.net.www.protocol.file.FileURLConnection.permission:Ljava/security/Permission;
4: goto 11
5: StackMap locals: java.lang.String
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
iconst_2
if_icmple 8
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpne 8
6: aload 1
iconst_2
invokevirtual java.lang.String.charAt:(I)C
bipush 58
if_icmpne 8
7: aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
8: StackMap locals:
StackMap stack:
aload 0
new java.io.FilePermission
dup
9: aload 1
bipush 47
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
ldc "read"
invokespecial java.io.FilePermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
10: putfield sun.net.www.protocol.file.FileURLConnection.permission:Ljava/security/Permission;
end local 1 11: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.file.FileURLConnection.permission:Ljava/security/Permission;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/net/www/protocol/file/FileURLConnection;
2 11 1 decodedPath Ljava/lang/String;
Exceptions:
throws java.io.IOException
}
SourceFile: "FileURLConnection.java"