|
|||||||||
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.impl.ManageableImpl | +--com.sun.media.jsdt.impl.ByteArrayImpl
JSDT Byte Array (implementation) class.
Field Summary | |
protected com.sun.media.jsdt.ByteArrayManager |
byteArrayManager
The byte array manager associated with this byte array (if any). |
static char |
M_ByteArray
To signify a manageable object of type ByteArray. |
AbstractByteArrayProxy |
po
Handle to client-side proxy. |
AbstractByteArrayServer |
so
Handle to server-side object. |
Fields inherited from class com.sun.media.jsdt.impl.ManageableImpl |
mpo,
name,
objectType |
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 | |
ByteArrayImpl(boolean isServer,
java.lang.String name,
SessionImpl session,
byte[] value)
ByteArrayImpl the constructor for the ByteArray (implementation) class. |
Method Summary | |
void |
addByteArrayListener(com.sun.media.jsdt.event.ByteArrayListener listener)
add the specified ByteArray listener to receive ByteArray events for this ByteArray. |
void |
byteArrayExpelled(com.sun.media.jsdt.event.ByteArrayEvent event)
invoked when a Client has been expelled from a ByteArray. |
void |
byteArrayInvited(com.sun.media.jsdt.event.ByteArrayEvent event)
invoked when a Client has been invited to join a ByteArray. |
void |
byteArrayJoined(com.sun.media.jsdt.event.ByteArrayEvent event)
invoked when a Client has joined a ByteArray. |
void |
byteArrayLeft(com.sun.media.jsdt.event.ByteArrayEvent event)
invoked when a Client has left a ByteArray. |
void |
byteArrayValueChanged(com.sun.media.jsdt.event.ByteArrayEvent event)
invoked when the value of a ByteArray has changed. |
byte[] |
getValue()
Deprecated. There are now three different methods that can be used to return the current value contained in a ByteArray 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 getValueAsBytes()
method. |
byte[] |
getValueAsBytes()
get the current value for this shared ByteArray, as an array of bytes. |
java.lang.Object |
getValueAsObject()
get the current value for this shared ByteArray, as a Java object. |
java.lang.String |
getValueAsString()
get the current value for this shared ByteArray, as a String object. |
void |
removeByteArrayListener(com.sun.media.jsdt.event.ByteArrayListener listener)
removes the specified ByteArray listener so that it no longer receives ByteArray events for this ByteArray. |
void |
setLocalValue(byte[] value)
set the local value for this shared ByteArray. |
void |
setValue(com.sun.media.jsdt.Client client,
byte[] value)
sets a new value for this shared ByteArray. |
void |
setValue(com.sun.media.jsdt.Client client,
byte[] value,
int offset,
int length)
sets a new value for this shared ByteArray using a subset of the given ByteArray. |
void |
setValue(com.sun.media.jsdt.Client client,
java.lang.Object object)
sets a new value for this shared ByteArray using the given Java object. |
void |
setValue(com.sun.media.jsdt.Client client,
java.lang.String string)
sets a new value for this shared ByteArray using the given String. |
Methods inherited from class com.sun.media.jsdt.impl.ManageableImpl |
addListener,
destroy,
disableListenerEvents,
disableManagerEvents,
enableListenerEvents,
enableManagerEvents,
expel,
getName,
getSession,
invite,
isManaged,
join,
leave,
listClientNames |
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 |
Field Detail |
public static final char M_ByteArray
protected com.sun.media.jsdt.ByteArrayManager byteArrayManager
public AbstractByteArrayProxy po
public AbstractByteArrayServer so
Constructor Detail |
public ByteArrayImpl(boolean isServer, java.lang.String name, SessionImpl session, byte[] value)
isServer
- set if are we creating object on the server-side.name
- the name of the byte array being constructed.session
- the session this byte array belongs to.value
- the initial value to associate with this ByteArray.Method Detail |
public byte[] getValue() throws com.sun.media.jsdt.NoSuchByteArrayException
getValueAsBytes()
method.public byte[] getValueAsBytes() throws com.sun.media.jsdt.NoSuchByteArrayException
public java.lang.Object getValueAsObject() throws java.lang.ClassNotFoundException, com.sun.media.jsdt.NoSuchByteArrayException, java.io.StreamCorruptedException
public java.lang.String getValueAsString() throws com.sun.media.jsdt.NoSuchByteArrayException
public void setLocalValue(byte[] value)
value
- the new local value for this shared ByteArray.public void setValue(com.sun.media.jsdt.Client client, byte[] value) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.InvalidClientException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchClientException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.PermissionDeniedException, com.sun.media.jsdt.TimedOutException
byteArrayValueChanged
method invoked.client
- the Client wishing to set the value of this ByteArray.value
- the new value for this shared ByteArray.public void setValue(com.sun.media.jsdt.Client client, byte[] value, int offset, int length) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.InvalidClientException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchClientException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.PermissionDeniedException, com.sun.media.jsdt.TimedOutException
byteArrayValueChanged
method invoked.client
- the Client wishing to set the value of this ByteArray.value
- the byte array that is the source of the new shared
ByteArray value.offset
- the initial offset within the byte array.length
- the number of bytes to use.public void setValue(com.sun.media.jsdt.Client client, java.lang.String string) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.InvalidClientException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchClientException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.PermissionDeniedException, com.sun.media.jsdt.TimedOutException
byteArrayValueChanged
method invoked.client
- the Client wishing to set the value of this ByteArray. * @param value the String value from which an array of bytes is set.public void setValue(com.sun.media.jsdt.Client client, java.lang.Object object) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.InvalidClientException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchClientException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.PermissionDeniedException, com.sun.media.jsdt.TimedOutException
byteArrayValueChanged
method invoked.client
- the Client wishing to set the value of this ByteArray. * @param value the Java object value which is serialized into an
array of bytes.public void addByteArrayListener(com.sun.media.jsdt.event.ByteArrayListener listener) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.TimedOutException
listener
- the ByteArray listener.public void removeByteArrayListener(com.sun.media.jsdt.event.ByteArrayListener listener) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchListenerException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.TimedOutException
listener
- the ByteArray listener.public void byteArrayJoined(com.sun.media.jsdt.event.ByteArrayEvent event)
event
- the ByteArray event containing more information.public void byteArrayLeft(com.sun.media.jsdt.event.ByteArrayEvent event)
event
- the ByteArray event containing more information.public void byteArrayValueChanged(com.sun.media.jsdt.event.ByteArrayEvent event)
event
- the ByteArray event containing more information.public void byteArrayInvited(com.sun.media.jsdt.event.ByteArrayEvent event)
event
- the ByteArray event containing more information.public void byteArrayExpelled(com.sun.media.jsdt.event.ByteArrayEvent event)
event
- the ByteArray event containing more information.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |