public class javax.activation.URLDataSource implements javax.activation.DataSource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.activation.URLDataSource
super_class: java.lang.Object
{
private java.net.URL url;
descriptor: Ljava/net/URL;
flags: (0x0002) ACC_PRIVATE
private java.net.URLConnection url_conn;
descriptor: Ljava/net/URLConnection;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.net.URL);
descriptor: (Ljava/net/URL;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield javax.activation.URLDataSource.url:Ljava/net/URL;
2: aload 0
aconst_null
putfield javax.activation.URLDataSource.url_conn:Ljava/net/URLConnection;
3: aload 0
aload 1
putfield javax.activation.URLDataSource.url:Ljava/net/URL;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/activation/URLDataSource;
0 5 1 url Ljava/net/URL;
MethodParameters:
Name Flags
url
public java.lang.String getContentType();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield javax.activation.URLDataSource.url_conn:Ljava/net/URLConnection;
ifnonnull 5
2: aload 0
aload 0
getfield javax.activation.URLDataSource.url:Ljava/net/URL;
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
putfield javax.activation.URLDataSource.url_conn:Ljava/net/URLConnection;
3: goto 5
StackMap locals: javax.activation.URLDataSource java.lang.String
StackMap stack: java.io.IOException
4: pop
5: StackMap locals:
StackMap stack:
aload 0
getfield javax.activation.URLDataSource.url_conn:Ljava/net/URLConnection;
ifnull 7
6: aload 0
getfield javax.activation.URLDataSource.url_conn:Ljava/net/URLConnection;
invokevirtual java.net.URLConnection.getContentType:()Ljava/lang/String;
astore 1
7: StackMap locals:
StackMap stack:
aload 1
ifnonnull 9
8: ldc "application/octet-stream"
astore 1
9: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/activation/URLDataSource;
1 10 1 type Ljava/lang/String;
Exception table:
from to target type
1 3 4 Class java.io.IOException
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.activation.URLDataSource.url:Ljava/net/URL;
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/activation/URLDataSource;
public java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.activation.URLDataSource.url:Ljava/net/URL;
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/activation/URLDataSource;
Exceptions:
throws java.io.IOException
public java.io.OutputStream getOutputStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield javax.activation.URLDataSource.url:Ljava/net/URL;
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
putfield javax.activation.URLDataSource.url_conn:Ljava/net/URLConnection;
1: aload 0
getfield javax.activation.URLDataSource.url_conn:Ljava/net/URLConnection;
ifnull 4
2: aload 0
getfield javax.activation.URLDataSource.url_conn:Ljava/net/URLConnection;
iconst_1
invokevirtual java.net.URLConnection.setDoOutput:(Z)V
3: aload 0
getfield javax.activation.URLDataSource.url_conn:Ljava/net/URLConnection;
invokevirtual java.net.URLConnection.getOutputStream:()Ljava/io/OutputStream;
areturn
4: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/activation/URLDataSource;
Exceptions:
throws java.io.IOException
public java.net.URL getURL();
descriptor: ()Ljava/net/URL;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.activation.URLDataSource.url:Ljava/net/URL;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/activation/URLDataSource;
}
SourceFile: "URLDataSource.java"