Name

javax.microedition.io.Datagram

Synopsis

This interface represents the generic datagram interface. It acts as a holder for data to be sent to or received from a datagram connection.

public interfaceDatagram extends DataInput, DataOutput {
   // public instance methods
   public String getAddress(  );
   public byte[] getData(  );
   public int getLength(  );
   public int getOffset(  );
   public void reset(  );
   public void setAddress(Datagram reference);
   public void setAddress(String address) throws IOException;
   public void setData(byte[] buffer, int offset, int len);
   public void setLength(int len);
}

Get Wireless Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.