|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.squawk.io.mailboxes.Envelope
com.sun.squawk.io.mailboxes.ByteArrayEnvelope
public class ByteArrayEnvelope
A ByteArrayEnvelope can be used to pass a byte array, or subsection of a byte array through a Channel.
The specified section of the byte array will be copied as the envelope is being sent to the remote channel.
| Constructor Summary | |
|---|---|
ByteArrayEnvelope(byte[] array)
Create a ByteArrayEnvelope for the specified array. |
|
ByteArrayEnvelope(byte[] array,
int offset,
int len)
Create a ByteArrayEnvelope for the subsection of the specified array. |
|
| Method Summary | |
|---|---|
Object |
getContents()
Return the contents of the envelope. |
byte[] |
getData()
Return the contents of the envelope, which is a byte array. |
| Methods inherited from class com.sun.squawk.io.mailboxes.Envelope |
|---|
checkCallContext |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayEnvelope(byte[] array)
array - the array of bytes to be sent.
public ByteArrayEnvelope(byte[] array,
int offset,
int len)
array - the array of bytes to be sent.offset - offset to the first byte in the array to be sent.len - the number of bytes to be sent.| Method Detail |
|---|
public Object getContents()
getContents in class Envelopepublic byte[] getData()
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||