|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the datagram interface, which represents an object used by Datagram connections to send / receive data
| Method Summary | |
java.lang.String |
getAddress()
Get the address in the datagram. |
byte[] |
getData()
Get the data buffer |
int |
getLength()
Get the datagram length. |
int |
getOffset()
Get the offset. |
void |
reset()
Zero the read/write pointer as well as the offset and length parameters. |
void |
setAddress(Datagram reference)
Set datagram address, copying the address from another datagram. |
void |
setAddress(java.lang.String addr)
Set datagram address. |
void |
setData(byte[] buffer,
int offset,
int len)
Set the buffer, offset and length. |
void |
setLength(int len)
Set the length. |
| Methods inherited from interface java.io.DataInput |
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
| Methods inherited from interface java.io.DataOutput |
write, write, write, writeBoolean, writeByte, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Method Detail |
public java.lang.String getAddress()
public byte[] getData()
public int getLength()
public int getOffset()
public void setAddress(java.lang.String addr)
throws IOException
addr - the new target address as a URL
IllegalArgumentException - if the address is not valid
IOException - if a some kind of I/O error occurspublic void setAddress(Datagram reference)
reference - the datagram who's address will be copied as
the new target address for this datagram.
IllegalArgumentException - if the address is not validgetAddress()public void setLength(int len)
len - the new length of the data
IllegalArgumentException - if the length is negative
or larger than the buffergetLength()
public void setData(byte[] buffer,
int offset,
int len)
buffer - the data bufferoffset - the offset into the data bufferlen - the length of the data in the buffer
IllegalArgumentException - if the length or offset
fall outside the buffergetData()public void reset()
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||