com.sun.media.jsdt.template
Class ByteArrayProxy
java.lang.Object
|
+--com.sun.media.jsdt.template.templateJSDTObject
|
+--com.sun.media.jsdt.template.ManageableProxy
|
+--com.sun.media.jsdt.template.ByteArrayProxy
- public final class ByteArrayProxy
- extends com.sun.media.jsdt.template.ManageableProxy
- implements AbstractByteArrayProxy
JSDT Byte Array proxy class.
- Version:
- 1.5 - 7th January 1999
- Author:
- Rich Burridge
Method Summary |
java.lang.Object |
getProxy()
getProxy get a handle to the "client-side" proxy for this ByteArray. |
void |
initProxy(java.lang.String name,
SessionImpl session,
java.lang.Object object)
initProxy initialise the "client-side" proxy for this ByteArray. |
void |
setValue(com.sun.media.jsdt.Client client,
byte[] value,
int offset,
int length)
setValue update a shared byte array with the given name for this
session. |
Methods inherited from class com.sun.media.jsdt.template.ManageableProxy |
addListener,
changeListenerMask,
changeManagerMask,
destroy,
expel,
getSession,
invite,
isManaged,
join,
leave,
listClientNames,
removeListener |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ByteArrayProxy
public ByteArrayProxy()
initProxy
public void initProxy(java.lang.String name,
SessionImpl session,
java.lang.Object object)
-
initProxy initialise the "client-side" proxy for this ByteArray.
- Specified by:
- initProxy in interface AbstractByteArrayProxy
- Parameters:
name
- the name of the ByteArray proxy being constructed.session
- the client-side session the ByteArray belongs to.object
- the client-side ByteArray.- Overrides:
- initProxy in class com.sun.media.jsdt.template.ManageableProxy
getProxy
public java.lang.Object getProxy()
-
getProxy get a handle to the "client-side" proxy for this ByteArray.
- Specified by:
- getProxy in interface AbstractByteArrayProxy
- Returns:
- a handle to the "client-side" proxy for this ByteArray.
- Overrides:
- getProxy in class com.sun.media.jsdt.template.ManageableProxy
setValue
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
-
setValue update a shared byte array with the given name for this
session. Send a change notification to all the listeners of this shared
byte array.
- Specified by:
- setValue in interface AbstractByteArrayProxy
- Parameters:
client
- a client successfully joined to this session.value
- the new value of the byte array.offset
- the offset into the byte array.length
- the length of the byte array.- Throws:
- com.sun.media.jsdt.ConnectionException - if a connection error occured.
- com.sun.media.jsdt.InvalidClientException - if the Client is invalid is some way (ie.
its getName() method returns null).
- com.sun.media.jsdt.NoSuchByteArrayException - if this byte array does exist.
- com.sun.media.jsdt.NoSuchClientException - if this Client doesn't exist.
- com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
- com.sun.media.jsdt.PermissionDeniedException - if this Client does not have permission
to change the value of this ByteArray.
- com.sun.media.jsdt.TimedOutException - if no reply was received for this operation
in the given timeout period.