|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.platform.symphony.soam.Message
com.platform.symphony.soam.DefaultByteArrayMessage
public class DefaultByteArrayMessage
This represents a default implementation for developers requiring a convenient way to pass binary data between a client and a service without creating their own implementation. This object is not thread safe, therefore the developer is responsible for any synchronization required. This message can be used in applications that have a "cross-platform" implementation. (i.e. client and service may be implemented in different supported languages)
Message
Constructor Summary | |
---|---|
DefaultByteArrayMessage()
Default Constructor |
|
DefaultByteArrayMessage(byte[] byteArray)
Additioanal constructor for the DefaultByteArrayMessage object. |
Method Summary | |
---|---|
byte[] |
getByteArray()
This method allows the developer to retrieve the internal byte array within the message. |
void |
onDeserialize(InputStream stream)
This method will be called during de-serialization of the message. |
void |
onSerialize(OutputStream stream)
This method will be called during serialization of the message. |
void |
setByteArray(byte[] byteArray)
This method allows the developer to set the internal byte array within the message. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultByteArrayMessage()
public DefaultByteArrayMessage(byte[] byteArray)
byteArray
- The byte array to be associated with this message.Method Detail |
---|
public void onSerialize(OutputStream stream) throws SoamException
onSerialize
in class Message
stream
- The stream to which the object is being serialized.
SoamException
public void onDeserialize(InputStream stream) throws SoamException
onDeserialize
in class Message
stream
- The stream from which the object is being de-serialized.
SoamException
public void setByteArray(byte[] byteArray)
byteArray
- The binary message to be associated with the DefaultByteArrayMessage.public byte[] getByteArray()
|
Version 5.0 Date Modified: -DREL_DATE=Nov 11 2009 Platform Computing. Accelerating Intelligence(TM). Copyright (C) 2001-2009 Platform Computing Corporation. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |