|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.ethz.iks.r_osgi.messages.RemoteOSGiMessage
ch.ethz.iks.r_osgi.messages.StreamResultMessage
public final class StreamResultMessage
Stream result message.
| Field Summary | |
|---|---|
static short |
RESULT_ARRAY
result indicates array. |
static short |
RESULT_EXCEPTION
result indicates exception. |
static short |
RESULT_WRITE_OK
result indicates write operation completed successfully. |
| Fields inherited from class ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage |
|---|
DELIVER_BUNDLE, DELIVER_BUNDLES, DELIVER_SERVICE, LEASE, LEASE_UPDATE, REMOTE_CALL, REMOTE_CALL_RESULT, REMOTE_EVENT, REQUEST_BUNDLE, REQUEST_DEPENDENCIES, REQUEST_SERVICE, STREAM_REQUEST, STREAM_RESULT, TIME_OFFSET, xid |
| Constructor Summary | |
|---|---|
StreamResultMessage()
creates a new StreamResultMessage. |
|
| Method Summary | |
|---|---|
boolean |
causedException()
did the stream operation cause an exception ? |
byte[] |
getData()
get the data array. |
java.io.IOException |
getException()
get the exception. |
int |
getLen()
get the length. |
short |
getResult()
get the result value. |
void |
setData(byte[] b)
set the data array. |
void |
setException(java.io.IOException exception)
set the exception. |
void |
setLen(int len)
set the length. |
void |
setResult(short result)
set the result value. |
java.lang.String |
toString()
String representation for debug outputs. |
void |
writeBody(java.io.ObjectOutputStream out)
write the body of the message to a stream. |
| Methods inherited from class ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage |
|---|
getFuncID, getXID, parse, readBytes, readStringArray, send, setXID, writeBytes, writeStringArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final short RESULT_ARRAY
public static final short RESULT_EXCEPTION
public static final short RESULT_WRITE_OK
| Constructor Detail |
|---|
public StreamResultMessage()
| Method Detail |
|---|
public void writeBody(java.io.ObjectOutputStream out)
throws java.io.IOException
writeBody in class RemoteOSGiMessageout - the ObjectOutputStream.
java.io.IOException - in case of IO failures.ch.ethz.iks.r_osgi.impl.RemoteOSGiMessageImpl#getBody()public boolean causedException()
true, if an exception has been thrown on the remote
side. In this case, the exception can be retrieved through the
getException method.public short getResult()
public void setResult(short result)
result - the result.public byte[] getData()
public void setData(byte[] b)
b - the array containing the read data.public int getLen()
public void setLen(int len)
len - the number of bytes read.public java.io.IOException getException()
null if none was thrown.public void setException(java.io.IOException exception)
exception - the exception that was thrown.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||