public final class sun.net.sdp.SdpSupport
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.net.sdp.SdpSupport
super_class: java.lang.Object
{
private static final java.lang.String os;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean isSupported;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final sun.misc.JavaIOFileDescriptorAccess fdAccess;
descriptor: Lsun/misc/JavaIOFileDescriptorAccess;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new sun.security.action.GetPropertyAction
dup
ldc "os.name"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
1: putstatic sun.net.sdp.SdpSupport.os:Ljava/lang/String;
2: getstatic sun.net.sdp.SdpSupport.os:Ljava/lang/String;
ldc "SunOS"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 3
getstatic sun.net.sdp.SdpSupport.os:Ljava/lang/String;
ldc "Linux"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 3
iconst_0
goto 4
StackMap locals:
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: putstatic sun.net.sdp.SdpSupport.isSupported:Z
5: invokestatic sun.misc.SharedSecrets.getJavaIOFileDescriptorAccess:()Lsun/misc/JavaIOFileDescriptorAccess;
6: putstatic sun.net.sdp.SdpSupport.fdAccess:Lsun/misc/JavaIOFileDescriptorAccess;
7: new sun.security.action.LoadLibraryAction
dup
ldc "net"
invokespecial sun.security.action.LoadLibraryAction.<init>:(Ljava/lang/String;)V
8: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
9: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/sdp/SdpSupport;
public static java.io.FileDescriptor createSocket();
descriptor: ()Ljava/io/FileDescriptor;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=0
0: getstatic sun.net.sdp.SdpSupport.isSupported:Z
ifne 2
1: new java.lang.UnsupportedOperationException
dup
ldc "SDP not supported on this platform"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
invokestatic sun.net.sdp.SdpSupport.create0:()I
istore 0
start local 0 3: new java.io.FileDescriptor
dup
invokespecial java.io.FileDescriptor.<init>:()V
astore 1
start local 1 4: getstatic sun.net.sdp.SdpSupport.fdAccess:Lsun/misc/JavaIOFileDescriptorAccess;
aload 1
iload 0
invokeinterface sun.misc.JavaIOFileDescriptorAccess.set:(Ljava/io/FileDescriptor;I)V
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
3 6 0 fdVal I
4 6 1 fd Ljava/io/FileDescriptor;
Exceptions:
throws java.io.IOException
public static void convertSocket(java.io.FileDescriptor);
descriptor: (Ljava/io/FileDescriptor;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic sun.net.sdp.SdpSupport.isSupported:Z
ifne 2
1: new java.lang.UnsupportedOperationException
dup
ldc "SDP not supported on this platform"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
getstatic sun.net.sdp.SdpSupport.fdAccess:Lsun/misc/JavaIOFileDescriptorAccess;
aload 0
invokeinterface sun.misc.JavaIOFileDescriptorAccess.get:(Ljava/io/FileDescriptor;)I
istore 1
start local 1 3: iload 1
invokestatic sun.net.sdp.SdpSupport.convert0:(I)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 fd Ljava/io/FileDescriptor;
3 5 1 fdVal I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fd
private static native int create0();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
private static native void convert0(int);
descriptor: (I)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fd
}
SourceFile: "SdpSupport.java"