|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.media.jsdt.impl.JSDTObject | +--com.sun.media.jsdt.Data
The Data class.
Fields inherited from class com.sun.media.jsdt.impl.JSDTObject |
giveTime,
httpTunnelPort,
maxQueueSize,
maxThreadPoolSize,
pingPeriod,
registryAddress,
registryPort,
registryTime,
showMessage,
showStack,
socketFactoryClass,
SSLCipher,
timeoutPeriod,
TTL,
versionString |
Constructor Summary | |
Data(byte[] data)
constructor for the Data class. |
|
Data(byte[] data,
int length)
constructor for the Data class. |
|
Data(java.lang.Object object)
constructor for the Data class. |
|
Data(java.lang.String string)
constructor for the Data class. |
Method Summary | |
Channel |
getChannel()
get the Channel that this data was sent over. |
byte[] |
getData()
Deprecated. There are now three different methods that can be used to return the data contained in a Data object. The naming of this method is inconsistent with those three methods. As of JSDT 1.5, the preferred way to do this is via the getDataAsBytes() method. |
byte[] |
getDataAsBytes()
get the data associated with this Data object, as an array of bytes. |
java.lang.Object |
getDataAsObject()
get the data associated with this Data object, as a Java Object. |
java.lang.String |
getDataAsString()
get the data associated with this Data object, as a String object. |
int |
getLength()
get the length of the data in this Data object. |
int |
getPriority()
gets the priority that this Data was sent at. |
java.lang.String |
getSenderName()
get the name of the Data sender. |
void |
setChannel(Channel channel)
set a new channel value for this data. |
void |
setPriority(int priority)
set a new priority value for this data. |
void |
setSenderName(java.lang.String senderName)
set a new sender name for this data. |
Methods inherited from class com.sun.media.jsdt.impl.JSDTObject |
error,
getConnectionType,
setConnectionType |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Data(byte[] data)
data
- the data (an array of bytes).public Data(byte[] data, int length)
data
- the data (an array of bytes).length
- the length of the data.public Data(java.lang.String string)
string
- the data (a String).public Data(java.lang.Object object)
object
- the data (a Java object).Method Detail |
public byte[] getData()
getDataAsBytes()
method.public byte[] getDataAsBytes()
public java.lang.Object getDataAsObject() throws java.lang.ClassNotFoundException, java.io.StreamCorruptedException
public java.lang.String getDataAsString()
public int getLength()
public java.lang.String getSenderName()
public int getPriority()
public void setPriority(int priority)
priority
- the new priority value.public Channel getChannel()
public void setChannel(Channel channel)
channel
- the new channel value.public void setSenderName(java.lang.String senderName)
senderName
- the new sender name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |