javax.microedition.io.DatagramConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdc-1.1.2-stub Show documentation
Show all versions of cdc-1.1.2-stub Show documentation
Stub of the Connected Device Configuration v1.1.2
The newest version!
package javax.microedition.io;
import java.io.IOException;
/**
* @since CLDC 1.0
*/
public interface DatagramConnection extends Connection {
/**
* @throws IOException
*/
int getMaximumLength() throws IOException;
/**
* @throws IOException
*/
int getNominalLength() throws IOException;
/**
* @throws IOException
* @throws IllegalArgumentException
*/
Datagram newDatagram(int size) throws IOException;
/**
* @throws IOException
* @throws IllegalArgumentException
*/
Datagram newDatagram(int size, String addr) throws IOException;
/**
* @throws IOException
* @throws IllegalArgumentException
*/
Datagram newDatagram(byte[] buf, int size) throws IOException;
/**
* @throws IOException
* @throws IllegalArgumentException
*/
Datagram newDatagram(byte[] buf, int size, String addr) throws IOException;
/**
* @throws IOException
* @throws InterruptedIOException
*/
void receive(Datagram dgram) throws IOException;
/**
* @throws IOException
* @throws InterruptedIOException
*/
void send(Datagram arg0) throws IOException;
}