public class sun.net.www.protocol.mailto.MailToURLConnection extends sun.net.www.URLConnection
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.www.protocol.mailto.MailToURLConnection
super_class: sun.net.www.URLConnection
{
java.io.InputStream is;
descriptor: Ljava/io/InputStream;
flags: (0x0000)
java.io.OutputStream os;
descriptor: Ljava/io/OutputStream;
flags: (0x0000)
sun.net.smtp.SmtpClient client;
descriptor: Lsun/net/smtp/SmtpClient;
flags: (0x0000)
java.security.Permission permission;
descriptor: Ljava/security/Permission;
flags: (0x0000)
private int connectTimeout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int readTimeout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(java.net.URL);
descriptor: (Ljava/net/URL;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.net.www.URLConnection.<init>:(Ljava/net/URL;)V
1: aload 0
aconst_null
putfield sun.net.www.protocol.mailto.MailToURLConnection.is:Ljava/io/InputStream;
2: aload 0
aconst_null
putfield sun.net.www.protocol.mailto.MailToURLConnection.os:Ljava/io/OutputStream;
3: aload 0
iconst_m1
putfield sun.net.www.protocol.mailto.MailToURLConnection.connectTimeout:I
4: aload 0
iconst_m1
putfield sun.net.www.protocol.mailto.MailToURLConnection.readTimeout:I
5: new sun.net.www.MessageHeader
dup
invokespecial sun.net.www.MessageHeader.<init>:()V
astore 2
start local 2 6: aload 2
ldc "content-type"
ldc "text/html"
invokevirtual sun.net.www.MessageHeader.add:(Ljava/lang/String;Ljava/lang/String;)V
7: aload 0
aload 2
invokevirtual sun.net.www.protocol.mailto.MailToURLConnection.setProperties:(Lsun/net/www/MessageHeader;)V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/www/protocol/mailto/MailToURLConnection;
0 9 1 u Ljava/net/URL;
6 9 2 props Lsun/net/www/MessageHeader;
MethodParameters:
Name Flags
u
java.lang.String getFromAddress();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=3, locals=3, args_size=1
start local 0 0: ldc "user.fromaddr"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 12
2: ldc "user.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
3: aload 1
ifnull 11
4: ldc "mail.host"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 5: aload 2
ifnonnull 9
6: invokestatic java.net.InetAddress.getLocalHost:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostName:()Ljava/lang/String;
astore 2
7: goto 9
StackMap locals: sun.net.www.protocol.mailto.MailToURLConnection java.lang.String java.lang.String
StackMap stack: java.net.UnknownHostException
8: pop
9: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "@"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
end local 2 10: goto 12
11: StackMap locals:
StackMap stack:
ldc ""
astore 1
12: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/net/www/protocol/mailto/MailToURLConnection;
1 13 1 str Ljava/lang/String;
5 10 2 host Ljava/lang/String;
Exception table:
from to target type
6 7 8 Class java.net.UnknownHostException
public void connect();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new sun.net.smtp.SmtpClient
dup
aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.connectTimeout:I
invokespecial sun.net.smtp.SmtpClient.<init>:(I)V
putfield sun.net.www.protocol.mailto.MailToURLConnection.client:Lsun/net/smtp/SmtpClient;
1: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.client:Lsun/net/smtp/SmtpClient;
aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.readTimeout:I
invokevirtual sun.net.smtp.SmtpClient.setReadTimeout:(I)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/protocol/mailto/MailToURLConnection;
Exceptions:
throws java.io.IOException
public synchronized java.io.OutputStream getOutputStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.os:Ljava/io/OutputStream;
ifnull 2
1: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.os:Ljava/io/OutputStream;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.is:Ljava/io/InputStream;
ifnull 4
3: new java.io.IOException
dup
ldc "Cannot write output after reading input."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.protocol.mailto.MailToURLConnection.connect:()V
5: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.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 6: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.client:Lsun/net/smtp/SmtpClient;
aload 0
invokevirtual sun.net.www.protocol.mailto.MailToURLConnection.getFromAddress:()Ljava/lang/String;
invokevirtual sun.net.smtp.SmtpClient.from:(Ljava/lang/String;)V
7: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.client:Lsun/net/smtp/SmtpClient;
aload 1
invokevirtual sun.net.smtp.SmtpClient.to:(Ljava/lang/String;)V
8: aload 0
aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.client:Lsun/net/smtp/SmtpClient;
invokevirtual sun.net.smtp.SmtpClient.startMessage:()Ljava/io/PrintStream;
putfield sun.net.www.protocol.mailto.MailToURLConnection.os:Ljava/io/OutputStream;
9: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.os:Ljava/io/OutputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/net/www/protocol/mailto/MailToURLConnection;
6 10 1 to Ljava/lang/String;
Exceptions:
throws java.io.IOException
public java.security.Permission getPermission();
descriptor: ()Ljava/security/Permission;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.permission:Ljava/security/Permission;
ifnonnull 4
1: aload 0
invokevirtual sun.net.www.protocol.mailto.MailToURLConnection.connect:()V
2: new java.lang.StringBuilder
dup
aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.client:Lsun/net/smtp/SmtpClient;
invokevirtual sun.net.smtp.SmtpClient.getMailHost:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 25
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 3: aload 0
new java.net.SocketPermission
dup
aload 1
ldc "connect"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
putfield sun.net.www.protocol.mailto.MailToURLConnection.permission:Ljava/security/Permission;
end local 1 4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.permission:Ljava/security/Permission;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/www/protocol/mailto/MailToURLConnection;
3 4 1 host Ljava/lang/String;
Exceptions:
throws java.io.IOException
public void setConnectTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "timeouts can't be negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield sun.net.www.protocol.mailto.MailToURLConnection.connectTimeout:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/www/protocol/mailto/MailToURLConnection;
0 4 1 timeout I
MethodParameters:
Name Flags
timeout
public int getConnectTimeout();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.connectTimeout:I
ifge 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.connectTimeout:I
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/protocol/mailto/MailToURLConnection;
public void setReadTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "timeouts can't be negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield sun.net.www.protocol.mailto.MailToURLConnection.readTimeout:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/www/protocol/mailto/MailToURLConnection;
0 4 1 timeout I
MethodParameters:
Name Flags
timeout
public int getReadTimeout();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.readTimeout:I
ifge 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield sun.net.www.protocol.mailto.MailToURLConnection.readTimeout:I
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/protocol/mailto/MailToURLConnection;
}
SourceFile: "MailToURLConnection.java"