Module java.base
Package java.net

# Class DatagramPacket

=
public final class DatagramPacket
extends java.lang.Object

## Constructors

- =
  public DatagramPacket(byte[] arg0, int arg1)
- =
  public DatagramPacket(byte[] arg0, int arg1, int arg2)
- =
  public DatagramPacket(byte[] arg0, int arg1, int arg2, java.net.InetAddress arg3, int arg4)
- =
  public DatagramPacket(byte[] arg0, int arg1, int arg2, java.net.SocketAddress arg3)
- =
  public DatagramPacket(byte[] arg0, int arg1, java.net.InetAddress arg2, int arg3)
- =
  public DatagramPacket(byte[] arg0, int arg1, java.net.SocketAddress arg2)

## Methods

- =
  public java.net.InetAddress getAddress()
- =
  public byte[] getData()
- =
  public int getLength()
- =
  public int getOffset()
- =
  public int getPort()
- =
  public java.net.SocketAddress getSocketAddress()
- =
  public void setAddress(java.net.InetAddress arg0)
- =
  public void setData(byte[] arg0)
- =
  public void setData(byte[] arg0, int arg1, int arg2)
- =
  public void setLength(int arg0)
- =
  public void setPort(int arg0)
- =
  public void setSocketAddress(java.net.SocketAddress arg0)

## Summary

No differences.