public final class java.net.DatagramPacket
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: java.net.DatagramPacket
super_class: java.lang.Object
{
byte[] buf;
descriptor: [B
flags: (0x0000)
int offset;
descriptor: I
flags: (0x0000)
int length;
descriptor: I
flags: (0x0000)
int bufLength;
descriptor: I
flags: (0x0000)
java.net.InetAddress address;
descriptor: Ljava/net/InetAddress;
flags: (0x0000)
int port;
descriptor: I
flags: (0x0000)
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.net.DatagramPacket$1
dup
invokespecial java.net.DatagramPacket$1.<init>:()V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
2: invokestatic java.net.DatagramPacket.init:()V
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
iload 2
iload 3
invokevirtual java.net.DatagramPacket.setData:([BII)V
2: aload 0
aconst_null
putfield java.net.DatagramPacket.address:Ljava/net/InetAddress;
3: aload 0
iconst_m1
putfield java.net.DatagramPacket.port:I
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/net/DatagramPacket;
0 5 1 buf [B
0 5 2 offset I
0 5 3 length I
MethodParameters:
Name Flags
buf
offset
length
public void <init>(byte[], int);
descriptor: ([BI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iconst_0
iload 2
invokespecial java.net.DatagramPacket.<init>:([BII)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/net/DatagramPacket;
0 2 1 buf [B
0 2 2 length I
MethodParameters:
Name Flags
buf
length
public void <init>(byte[], int, int, java.net.InetAddress, int);
descriptor: ([BIILjava/net/InetAddress;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
iload 2
iload 3
invokevirtual java.net.DatagramPacket.setData:([BII)V
2: aload 0
aload 4
invokevirtual java.net.DatagramPacket.setAddress:(Ljava/net/InetAddress;)V
3: aload 0
iload 5
invokevirtual java.net.DatagramPacket.setPort:(I)V
4: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/net/DatagramPacket;
0 5 1 buf [B
0 5 2 offset I
0 5 3 length I
0 5 4 address Ljava/net/InetAddress;
0 5 5 port I
MethodParameters:
Name Flags
buf
offset
length
address
port
public void <init>(byte[], int, int, java.net.SocketAddress);
descriptor: ([BIILjava/net/SocketAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
iload 2
iload 3
invokevirtual java.net.DatagramPacket.setData:([BII)V
2: aload 0
aload 4
invokevirtual java.net.DatagramPacket.setSocketAddress:(Ljava/net/SocketAddress;)V
3: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/net/DatagramPacket;
0 4 1 buf [B
0 4 2 offset I
0 4 3 length I
0 4 4 address Ljava/net/SocketAddress;
MethodParameters:
Name Flags
buf
offset
length
address
public void <init>(byte[], int, java.net.InetAddress, int);
descriptor: ([BILjava/net/InetAddress;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
iconst_0
iload 2
aload 3
iload 4
invokespecial java.net.DatagramPacket.<init>:([BIILjava/net/InetAddress;I)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/net/DatagramPacket;
0 2 1 buf [B
0 2 2 length I
0 2 3 address Ljava/net/InetAddress;
0 2 4 port I
MethodParameters:
Name Flags
buf
length
address
port
public void <init>(byte[], int, java.net.SocketAddress);
descriptor: ([BILjava/net/SocketAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iconst_0
iload 2
aload 3
invokespecial java.net.DatagramPacket.<init>:([BIILjava/net/SocketAddress;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/net/DatagramPacket;
0 2 1 buf [B
0 2 2 length I
0 2 3 address Ljava/net/SocketAddress;
MethodParameters:
Name Flags
buf
length
address
public synchronized java.net.InetAddress getAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.DatagramPacket.address:Ljava/net/InetAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/DatagramPacket;
public synchronized int getPort();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.DatagramPacket.port:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/DatagramPacket;
public synchronized byte[] getData();
descriptor: ()[B
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.DatagramPacket.buf:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/DatagramPacket;
public synchronized int getOffset();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.DatagramPacket.offset:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/DatagramPacket;
public synchronized int getLength();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.DatagramPacket.length:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/DatagramPacket;
public synchronized void setData(byte[], int, int);
descriptor: ([BII)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
iflt 3
iload 2
iflt 3
1: iload 3
iload 2
iadd
iflt 3
2: iload 3
iload 2
iadd
aload 1
arraylength
if_icmple 4
3: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "illegal length or offset"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield java.net.DatagramPacket.buf:[B
5: aload 0
iload 3
putfield java.net.DatagramPacket.length:I
6: aload 0
iload 3
putfield java.net.DatagramPacket.bufLength:I
7: aload 0
iload 2
putfield java.net.DatagramPacket.offset:I
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/net/DatagramPacket;
0 9 1 buf [B
0 9 2 offset I
0 9 3 length I
MethodParameters:
Name Flags
buf
offset
length
public synchronized void setAddress(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield java.net.DatagramPacket.address:Ljava/net/InetAddress;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/net/DatagramPacket;
0 2 1 iaddr Ljava/net/InetAddress;
MethodParameters:
Name Flags
iaddr
public synchronized void setPort(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iflt 1
iload 1
ldc 65535
if_icmple 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Port out of range:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield java.net.DatagramPacket.port:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/net/DatagramPacket;
0 4 1 iport I
MethodParameters:
Name Flags
iport
public synchronized void setSocketAddress(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
instanceof java.net.InetSocketAddress
ifne 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "unsupported address type"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast java.net.InetSocketAddress
astore 2
start local 2 3: aload 2
invokevirtual java.net.InetSocketAddress.isUnresolved:()Z
ifeq 5
4: new java.lang.IllegalArgumentException
dup
ldc "unresolved address"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aload 0
aload 2
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual java.net.DatagramPacket.setAddress:(Ljava/net/InetAddress;)V
6: aload 0
aload 2
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual java.net.DatagramPacket.setPort:(I)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/net/DatagramPacket;
0 8 1 address Ljava/net/SocketAddress;
3 8 2 addr Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
address
public synchronized java.net.SocketAddress getSocketAddress();
descriptor: ()Ljava/net/SocketAddress;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.net.InetSocketAddress
dup
aload 0
invokevirtual java.net.DatagramPacket.getAddress:()Ljava/net/InetAddress;
aload 0
invokevirtual java.net.DatagramPacket.getPort:()I
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/DatagramPacket;
public synchronized void setData(byte[]);
descriptor: ([B)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "null packet buffer"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield java.net.DatagramPacket.buf:[B
3: aload 0
iconst_0
putfield java.net.DatagramPacket.offset:I
4: aload 0
aload 1
arraylength
putfield java.net.DatagramPacket.length:I
5: aload 0
aload 1
arraylength
putfield java.net.DatagramPacket.bufLength:I
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/net/DatagramPacket;
0 7 1 buf [B
MethodParameters:
Name Flags
buf
public synchronized void setLength(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield java.net.DatagramPacket.offset:I
iadd
aload 0
getfield java.net.DatagramPacket.buf:[B
arraylength
if_icmpgt 2
iload 1
iflt 2
1: iload 1
aload 0
getfield java.net.DatagramPacket.offset:I
iadd
ifge 3
2: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "illegal length"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield java.net.DatagramPacket.length:I
4: aload 0
aload 0
getfield java.net.DatagramPacket.length:I
putfield java.net.DatagramPacket.bufLength:I
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/net/DatagramPacket;
0 6 1 length I
MethodParameters:
Name Flags
length
private static native void init();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
}
SourceFile: "DatagramPacket.java"
NestMembers:
java.net.DatagramPacket$1
InnerClasses:
java.net.DatagramPacket$1