javax.microedition.io.Datagram 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.DataInput;
import java.io.DataOutput;
import java.io.IOException;
/**
* @since CLDC 1.0
*/
public interface Datagram extends DataInput, DataOutput {
String getAddress();
byte[] getData();
int getLength();
int getOffset();
void reset();
/**
* @throws IllegalArgumentException
* @throws IOException
*/
void setAddress(String addr) throws IOException;
/**
* @throws IllegalArgumentException
*/
void setAddress(Datagram reference);
/**
* @throws IllegalArgumentException
*/
void setData(byte[] buffer, int offset, int len);
/**
* @throws IllegalArgumentException
*/
void setLength(int len);
}